Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/sizeof4.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do compile } |
2 // Origin: <anthwil at nortelnetworks dot com> | |
3 // c++/4933: using sizeof with comma operator as template argument | |
4 | |
5 template<unsigned F> | |
6 struct Foo {}; | |
7 | |
8 template<typename T> | |
9 T makeT(); | |
10 | |
11 template<typename T,typename U> | |
12 struct Bar | |
13 { | |
14 typedef Foo | |
15 < | |
16 sizeof((makeT<T>(), makeT<U>())) | |
17 > Type; | |
18 }; |