https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68578

--- Comment #1 from Yury V. Zaytsev <yury.zaytsev at traveltainment dot de> ---
Affected: GCC 5.2.1, unaffected: GCC 4.9.2 and reportedly trunk.

$ cat ice.i
template <typename> struct bar foo; template <> struct foo<>:

$ g++-5 -std=c++14 -w ice.i
ice.i:1:56: internal compiler error: Segmentation fault
 template <typename> struct bar foo; template <> struct foo<>:
                                                        ^
$ g++-4.9 -std=c++14 -w ice.i 
ice.i:1:32: error: template declaration of 'bar foo'
 template <typename> struct bar foo; template <> struct foo<>:
                                ^
...

$ g++-4.9 --version
g++-4.9 (Ubuntu 4.9.2-0ubuntu1~12.04) 4.9.2

$ g++-5 --version
g++-5 (Ubuntu 5.2.1-23ubuntu1~12.04) 5.2.1 20151031

Reply via email to