From: Paolo Carlini Date: Mon, 6 Feb 2017 17:49:31 +0000 (+0000) Subject: re PR c++/70448 (ICE on invalid code on x86_64-linux-gnu: unexpected expression ... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aae936b9a3914cf4b5d532644fbdcb1bf70f8099;p=gcc.git re PR c++/70448 (ICE on invalid code on x86_64-linux-gnu: unexpected expression ‘f’ of kind overload) 2017-02-06 Paolo Carlini PR c++/70448 * g++.dg/cpp0x/pr70448.C: New. From-SVN: r245213 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c40ae228cf4..99c626c948e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-02-06 Paolo Carlini + + PR c++/70448 + * g++.dg/cpp0x/pr70448.C: New. + 2017-02-06 Dominik Vogt PR 78348 diff --git a/gcc/testsuite/g++.dg/cpp0x/pr70448.C b/gcc/testsuite/g++.dg/cpp0x/pr70448.C new file mode 100644 index 00000000000..75e1e21fd49 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr70448.C @@ -0,0 +1,6 @@ +// { dg-do compile { target c++11 } } + +template +void f(){} + +enum{n=f}; // { dg-error "enumerator value" }