[Bug c++/14390] New: ICE in tsubst with instantiation of overloaded template

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Tue Mar 2 19:51:00 GMT 2004


>From the last example in PR 14389: 
---------------------- 
struct S { 
    template< typename _A > void foo(); 
    template< int _i >      void foo(); 
}; 
 
template< typename _A > void S::foo() {} 
 
template void S::foo< 0 >(); 
---------------------- 
 
This ICEs all my compilers like so: 
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc 
x.cc:6: internal compiler error: in tsubst, at cp/pt.c:6737 
Please submit a full bug report, 
 
W.

-- 
           Summary: ICE in tsubst with instantiation of overloaded template
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list