From: bangerth Date: Mon, 30 Jun 2003 19:21:25 +0000 (+0000) Subject: 2003-06-30 Giovanni Bajo X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=8ad28085e925c58aedeacf0340772128241c60c5;p=pf3gnuchains%2Fgcc-fork.git 2003-06-30 Giovanni Bajo PR c++/4933 * g++.dg/template/sizeof4.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68732 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ae6c4171bed..b8cd1c5a3fc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2003-06-30 Giovanni Bajo + PR c++/4933 + * g++.dg/template/sizeof4.C: New test. + +2003-06-30 Giovanni Bajo + * g++.dg/other/error6.C: New test. 2003-06-30 Giovanni Bajo diff --git a/gcc/testsuite/g++.dg/template/sizeof4.C b/gcc/testsuite/g++.dg/template/sizeof4.C new file mode 100644 index 00000000000..4856a2741f3 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/sizeof4.C @@ -0,0 +1,18 @@ +// { dg-do compile } +// Origin: +// c++/4933: using sizeof with comma operator as template argument + +template +struct Foo {}; + +template +T makeT(); + +template +struct Bar +{ + typedef Foo + < + sizeof((makeT(), makeT())) + > Type; +};