Commit 7ed28ff9 by Paolo Carlini Committed by Paolo Carlini

re PR c++/65592 (internal compiler error: Segmentation fault when using…

re PR c++/65592 (internal compiler error: Segmentation fault when using non-existent enum class enumerator)

2015-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/65592
	* g++.dg/cpp0x/scoped_enum6.C: New.

From-SVN: r225658
parent 9f620bf1
2015-07-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/65592
* g++.dg/cpp0x/scoped_enum6.C: New.
2015-07-10 Tom de Vries <tom@codesourcery.com> 2015-07-10 Tom de Vries <tom@codesourcery.com>
* gfortran.dg/parloops-exit-first-loop-alt-2.f95: New test. * gfortran.dg/parloops-exit-first-loop-alt-2.f95: New test.
......
// PR c++/65592
// { dg-do compile { target c++11 } }
struct S
{
enum class C { };
};
void
bar (S::C)
{
}
void
foo ()
{
S f;
bar (f.C::X); // { dg-error "13:'X' is not a member" }
}
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