Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/sizeof11.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/29435 |
2 | |
3 template < class T > struct A {}; | |
4 template < int> void g() | |
5 { | |
6 sizeof (A < int>); | |
7 } | |
8 | |
9 template < class T > struct B; | |
10 template < int> void f() | |
11 { | |
145 | 12 sizeof (B<int>); // { dg-error "3:invalid application of .sizeof. to incomplete type" } |
111 | 13 } |
14 |