gcc/testsuite/g++.dg/cpp0x/pr79296.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | // { dg-require-effective-target lto } |
| 3 | // { dg-additional-options "-flto" } |
| 4 | |
| 5 | // PR 79296 ICE mangling local class of localized instantiation |
| 6 | |
| 7 | struct X { |
| 8 | template <typename T> X (T const *) { |
| 9 | struct Z {}; |
| 10 | } |
| 11 | }; |
| 12 | |
| 13 | void Baz () |
| 14 | { |
| 15 | struct Y { } y; |
| 16 | |
| 17 | 0, X (&y); |
| 18 | } |