This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/48798] New: CV-qualified base class erroneously forbidden


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]