[Bug c++/34383] ICE on Usage of default function template argument

2011-11-14 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34383

Paolo Carlini paolo.carlini at oracle dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC|gcc-bugs at gcc dot gnu.org |
  Known to work||4.6.2, 4.7.0
 Resolution||FIXED

--- Comment #2 from Paolo Carlini paolo.carlini at oracle dot com 2011-11-14 
17:01:57 UTC ---
Fixed looong time ago.


[Bug c++/34383] ICE on Usage of default function template argument

2007-12-07 Thread rguenth at gcc dot gnu dot org


--- Comment #1 from rguenth at gcc dot gnu dot org  2007-12-07 19:03 ---
Confirmed.

This one ICEs different:

templatetypename T1 class Foo {};
templatetemplatetypename T1 class
Comp = Foo void
STATIC_ASSERT()
{
}

int main()
{
unsigned int b;
STATIC_ASSERT();
}

t.C: In function ‘int main()’:
t.C:1: internal compiler error: in tsubst_decl, at cp/pt.c:7602
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.3/README.Bugs for instructions.

and this one is a reduced one for the original ICE:

templatetypename T1 class Foo {};
templatetypename T1, templatetypename T1 class
Comp = Foo void
STATIC_ASSERT(T1)
{
}

int main()
{
unsigned int b;
STATIC_ASSERT(b);
}


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||ice-on-valid-code
   Last reconfirmed|-00-00 00:00:00 |2007-12-07 19:03:40
   date||
Summary|[4.3] ICE on Usage of   |ICE on Usage of default
   |default function template   |function template argument
   |argument|


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34383