2015-07-10 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/65592
* g++.dg/cpp0x/scoped_enum6.C: New.
From-SVN: r225658
+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>
* gfortran.dg/parloops-exit-first-loop-alt-2.f95: New test.
--- /dev/null
+// 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" }
+}