]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2017-02-06 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Feb 2017 17:49:31 +0000 (17:49 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Feb 2017 17:49:31 +0000 (17:49 +0000)
PR c++/70448
* g++.dg/cpp0x/pr70448.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245213 138bc75d-0d04-0410-961f-82ee72b054a4

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" }