From: Jason Merrill Date: Mon, 9 May 2011 18:03:02 +0000 (-0400) Subject: * g++.dg/template/nontype23.C: New. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14d0f7d2446c94b317ccbb2bf76afcf71b46a5ee;p=gcc.git * g++.dg/template/nontype23.C: New. From-SVN: r173586 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 04885cd7627..4b4bd93cd11 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-05-09 Jason Merrill + + * g++.dg/template/nontype23.C: New. + 2001-05-07 Fabien Chêne PR c++/48859 * g++.dg/init/pr48859.C: New. diff --git a/gcc/testsuite/g++.dg/template/nontype23.C b/gcc/testsuite/g++.dg/template/nontype23.C new file mode 100644 index 00000000000..dfda4fe2e59 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/nontype23.C @@ -0,0 +1,9 @@ +// PR c++/48936 + +template int foo (void); +template struct S +{ + static const unsigned int a = sizeof (T); + enum { c = sizeof (foo <(a == 0)> ()) }; +}; +S x;