From 14d0f7d2446c94b317ccbb2bf76afcf71b46a5ee Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 9 May 2011 14:03:02 -0400 Subject: [PATCH] * g++.dg/template/nontype23.C: New. From-SVN: r173586 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/template/nontype23.C | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/nontype23.C 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; -- 2.30.2