Commit f185af36 by Paolo Carlini Committed by Paolo Carlini

re PR c++/60199 ('error: field initializer is not constant' when initializing…

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
parent 58126368
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.
......
// 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;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment