From: Giovanni Bajo Date: Mon, 30 Jun 2003 19:21:25 +0000 (+0200) Subject: re PR c++/4933 (tree_list not supported by dump_expr) X-Git-Tag: releases/gcc-3.4.0~5301 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c85e18ee682b48bba948aa5a4fec9d1f12a5c456;p=thirdparty%2Fgcc.git re PR c++/4933 (tree_list not supported by dump_expr) 2003-06-30 Giovanni Bajo PR c++/4933 * g++.dg/template/sizeof4.C: New test. From-SVN: r68732 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ae6c4171bed7..b8cd1c5a3fcd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/gcc/testsuite/g++.dg/template/sizeof4.C b/gcc/testsuite/g++.dg/template/sizeof4.C new file mode 100644 index 000000000000..4856a2741f32 --- /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; +};