re PR c++/60199 ('error: field initializer is not constant' when initializing static member function pointer to a function)
2014-06-06 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60199 * g++.dg/cpp0x/constexpr-60199.C: New. From-SVN: r211310
This commit is contained in:
parent
581263689a
commit
f185af3614
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-06-06 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/60199
|
||||
* g++.dg/cpp0x/constexpr-60199.C: New.
|
||||
|
||||
2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
||||
|
||||
* gcc.dg/optimize-bswaphi-1.c: Adapt test to change of dump output.
|
||||
|
|
11
gcc/testsuite/g++.dg/cpp0x/constexpr-60199.C
Normal file
11
gcc/testsuite/g++.dg/cpp0x/constexpr-60199.C
Normal file
|
@ -0,0 +1,11 @@
|
|||
// PR c++/60199
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
void f() {}
|
||||
|
||||
static constexpr void (*g1)() = &f;
|
||||
static constexpr void (*g2)() = f;
|
||||
struct S {
|
||||
static constexpr void (*g3)() = &f;
|
||||
static constexpr void (*g4)() = f;
|
||||
};
|
Loading…
Add table
Reference in a new issue