Commit 7f5b3f48 by Jason Merrill

re PR c++/59281 (attribute((constructor)) accepts enum class as integer constant)

	PR c++/59281
	* g++.dg/ext/attr-constructor1.C: New.

From-SVN: r232704
parent 020491e6
// PR c++/59281
// { dg-do compile { target c++11 } }
enum class E : int { prio = 666 };
void f (int) __attribute__((constructor(E::prio))); // { dg-error "integer" }
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