* g++.dg/cpp0x/scoped_enum9.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276705
138bc75d-0d04-0410-961f-
82ee72b054a4
+2019-10-08 Marek Polacek <polacek@redhat.com>
+
+ DR 685 - Integral promotion of enum ignores fixed underlying type.
+ * g++.dg/cpp0x/scoped_enum9.C: New test.
+
2019-10-08 Martin Sebor <msebor@redhat.com>
PR tetsuite/92025
--- /dev/null
+// DR 685 - Integral promotion of enumeration ignores fixed underlying type.
+// { dg-do compile { target c++11 } }
+
+enum E: long { e };
+
+void f(int);
+int f(long);
+
+void g() {
+ int k = f(e);
+}