From: Paolo Carlini Date: Wed, 26 Nov 2014 16:06:53 +0000 (+0000) Subject: re PR c++/59114 ([c++1y] ICE using auto in conversion operator) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69d7fa342c0ff1932ad451d1ebd5aab53e79dd10;p=gcc.git re PR c++/59114 ([c++1y] ICE using auto in conversion operator) 2014-11-26 Paolo Carlini PR c++/59114 * g++.dg/cpp0x/auto43.C: New. From-SVN: r218090 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5c0ecd7cddb..48e35810079 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-11-26 Paolo Carlini + + PR c++/59114 + * g++.dg/cpp0x/auto43.C: New. + 2014-11-26 Richard Biener PR middle-end/63738 diff --git a/gcc/testsuite/g++.dg/cpp0x/auto43.C b/gcc/testsuite/g++.dg/cpp0x/auto43.C new file mode 100644 index 00000000000..45a827553d0 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/auto43.C @@ -0,0 +1,12 @@ +// PR c++/59114 +// { dg-do compile { target c++11 } } + +template struct A +{ + template operator T(); +}; + +void foo() +{ + A<0>().operator auto(); // { dg-error "invalid use of .auto" } +}