[Bug libstdc++/20647] Wrong typeid for incomplete types

frederic dot riss at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Nov 6 18:35:00 GMT 2005



------- Comment #12 from frederic dot riss at gmail dot com  2005-11-06 18:35 -------
When I read the standard, I thought that 'reference to a class type' was used
in a sort of general way covering pointers and C++ references. I interpreted
this that way because I don't see what difference it could make to a compiler
and/or a developper that typeid(A*) is valid while typeid(A&) isn't. 
So just for my personal knowledge, what could be the rationale behind this
special casing ?


-- 


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



More information about the Gcc-bugs mailing list