C++ PATCH for c++/48665 (typeid and function-cv-quals) - also disables some library tests
Jason Merrill
jason@redhat.com
Mon Apr 22 20:33:00 GMT 2013
This PR complained that G++ was using the same type_info node for a
function type with or without function-cv-qualifiers. As I read the
standard, typeid is not one of the few ways that a function-cv-qualifier
can be used, so we should just give an error in that case. I'm also
fixing the compiler to reject forming a pointer or reference to
function-cv-qualified type at instantiation time as well as parse time.
As a result of the latter change, I needed to comment out a bunch of
libstdc++ tests that were trying to form a reference to
function-cv-qualified type. Library folks may want to deal with this in
some other way.
Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 48665.patch
Type: text/x-patch
Size: 16060 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20130422/96cf63f0/attachment.bin>
More information about the Libstdc++
mailing list