re PR c++/70448 (ICE on invalid code on x86_64-linux-gnu: unexpected expression ...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 6 Feb 2017 17:49:31 +0000 (17:49 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 6 Feb 2017 17:49:31 +0000 (17:49 +0000)
2017-02-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70448
* g++.dg/cpp0x/pr70448.C: New.

From-SVN: r245213

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr70448.C [new file with mode: 0644]

index c40ae228cf4658de1ea9804b552082d44f6f0466..99c626c948eba526af0dc1a54c472e8052ab77d8 100644 (file)
@@ -1,3 +1,8 @@
+2017-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/70448
+       * g++.dg/cpp0x/pr70448.C: New.
+
 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
 
        PR 78348
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr70448.C b/gcc/testsuite/g++.dg/cpp0x/pr70448.C
new file mode 100644 (file)
index 0000000..75e1e21
--- /dev/null
@@ -0,0 +1,6 @@
+// { dg-do compile { target c++11 } }
+
+template<int>
+void f(){}
+
+enum{n=f};  // { dg-error "enumerator value" }