aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGiovanni Bajo <giovannibajo@libero.it>2003-06-30 21:21:25 +0200
committerWolfgang Bangerth <bangerth@gcc.gnu.org>2003-06-30 13:21:25 -0600
commitc85e18ee682b48bba948aa5a4fec9d1f12a5c456 (patch)
treef65a824c29df54d907fb3be85d0fb7e8b10c10fe /gcc
parent27758dc09f54bc631ecb3d362d083bc458f45bdd (diff)
downloadgcc-c85e18ee682b48bba948aa5a4fec9d1f12a5c456.zip
gcc-c85e18ee682b48bba948aa5a4fec9d1f12a5c456.tar.gz
gcc-c85e18ee682b48bba948aa5a4fec9d1f12a5c456.tar.bz2
re PR c++/4933 (tree_list not supported by dump_expr)
2003-06-30 Giovanni Bajo <giovannibajo@libero.it> PR c++/4933 * g++.dg/template/sizeof4.C: New test. From-SVN: r68732
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/template/sizeof4.C18
2 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ae6c417..b8cd1c5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
+ PR c++/4933
+ * g++.dg/template/sizeof4.C: New test.
+
+2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
+
* g++.dg/other/error6.C: New test.
2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
diff --git a/gcc/testsuite/g++.dg/template/sizeof4.C b/gcc/testsuite/g++.dg/template/sizeof4.C
new file mode 100644
index 0000000..4856a27
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/sizeof4.C
@@ -0,0 +1,18 @@
+// { dg-do compile }
+// Origin: <anthwil at nortelnetworks dot com>
+// c++/4933: using sizeof with comma operator as template argument
+
+template<unsigned F>
+struct Foo {};
+
+template<typename T>
+T makeT();
+
+template<typename T,typename U>
+struct Bar
+{
+ typedef Foo
+ <
+ sizeof((makeT<T>(), makeT<U>()))
+ > Type;
+};