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: [email protected]
ReportedBy: [email protected]
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.