[Bug c++/60920] New: Crash on double template header due to default template parameter
a71104 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Apr 22 13:18:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60920
Bug ID: 60920
Summary: Crash on double template header due to default
template parameter
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: a71104 at gmail dot com
```C++
template<int n, typename t = double>
struct x {};
template<typename t>
template<int n>
struct x<n> {};
int main() {
x<10, double> x1;
return 0;
}
```
It doesn't crash if I remove the default value `double` for the second template
argument, at the first line.
More information about the Gcc-bugs
mailing list