Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/crash8.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 | |
3 // Origin: David Robinson <drtr@dial.pipex.com> | |
4 | |
5 // PR c++/11513: ICE due to incorrect decision whether the tag is template. | |
6 | |
7 template <typename T> | |
8 struct bar | |
9 { | |
10 struct foo | |
11 { | |
12 int a; | |
13 }; | |
14 | |
15 template <typename U> | |
131 | 16 void wom(U c) |
111 | 17 { |
18 struct foo b; | |
19 } | |
20 }; |