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++/17435] [4.0 Regression] Temporay bound to reference is immediately destructed


------- Additional Comments From bangerth at dealii dot org  2004-09-13 13:11 -------
I think I remember that there was some language in the standard that 
says that the compiler _may_ invoke the copy constructor (which, btw, 
was the reason the copy constructor of the base class has to be 
accessible, one of our constant streams of bug reports). I understand 
that that is a rather vague pointer at the right place of the standard, 
I guess I will have to go look it up some time, just not today. 
 
Even then, the question whether this change is desirable is completely 
orthogonal. 
 
W. 

-- 


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


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