This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]