This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48798] New: CV-qualified base class erroneously forbidden
- From: "potswa at mac dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Apr 2011 07:05:45 +0000
- Subject: [Bug c++/48798] New: CV-qualified base class erroneously forbidden
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48798
Summary: CV-qualified base class erroneously forbidden
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: potswa@mac.com
DR 484 (http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#484)
modifies Â9.1/5, which allows a typedef-name to be used as a base class
specifier, to specifically say that cv-qualification of such a typedef is
ignored.
GCC issues an error "base class âtâ has cv qualifiers". This should be a
warning, if anything.
Even without the DR, the standard was previously silent about this, so
rejecting the code outright is a radical approach.