This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11682] ICE in Templates default value call a function
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2003 13:23:12 -0000
- Subject: [Bug c++/11682] ICE in Templates default value call a function
- References: <20030727074034.11682.boaz@hishome.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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 `;'