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++/16671] [3.5 regression] ICE in tsubst_decl


------- Additional Comments From bangerth at dealii dot org  2004-07-22 16:10 -------
I can't attach something today due to a misconfiguration on my side. But here's 
a reduced testcase: 
-------------------------- 
template <typename T> struct Accessor { 
    struct Reference { 
	void operator = (int); 
    }; 
}; 
 
template <typename T> 
void Accessor<T>::Reference::operator = (int) {} 
 
template class Accessor<float>::Reference; 
---------------------------- 
deal.II/deal.II> c++ -c x.cc 
x.cc: In instantiation of `Accessor<float>::Reference': 
x.cc:10:   instantiated from here 
x.cc:2: internal compiler error: in tsubst_decl, at cp/pt.c:6081 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
W. 

-- 


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


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