repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update ChangeLog and version files for release
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
sizeof4.C
blob
4856a2741f32b420112657d8fc96df3c3bc632a0
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
};