[Bug c++/15038] [3.4/3.5 Regression] ICE on template instantiation

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Wed Apr 21 15:15:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-04-21 14:11 -------
Indeed: 
--------------- 
struct S { 
    template<typename T> inline S(T) {} 
}; 
bool operator!= (const S &x, const S &S); 
 
struct {} e; 
bool x= (e != e); 
--------------- 
 
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c x.cc 
 
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc 
x.cc:7: internal compiler error: in instantiate_template, at cp/pt.c:8676 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc 
x.cc:6: error: non-local variable `<anonymous struct> e' uses anonymous type 
x.cc:7: internal compiler error: in instantiate_template, at cp/pt.c:8679 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.4.0 3.5.0
      Known to work|                            |3.3.4


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



More information about the Gcc-bugs mailing list