gcc/testsuite/g++.dg/template/crash8.C
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | // Origin: David Robinson <[email protected]> |
| 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> |
| 16 | void wom(U c) |
| 17 | { |
| 18 | struct foo b; |
| 19 | } |
| 20 | }; |