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++/11682] ICE in Templates default value call a function


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-27 13:23 -------
On the mainline (20030727), this code is rejected:
pr11682.cc:4: error: could not convert `<expression of type const 
   std::type_info>' to `std::type_info&'
pr11682.cc: In function `int main(int, char**)':
pr11682.cc:18: error: could not convert `*&_ZTI5ABoaz' to `std::type_info&'
pr11682.cc:2: error: in passing argument 1 of `int get_uuidof(std::type_info&)'
pr11682.cc:18: error: template argument 2 is invalid
pr11682.cc:18: error: expected `;'


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