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++/70820] GCC incorrectly accepts code that accesses nested names in an incomplete type


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70820

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
14.7.1:  "The implicit instantiation of a class template specialization causes
the implicit instantiation of the declarations, but not of the definitions,
default arguments, or exception-specifications of the class member functions,
member classes, scoped member enumerations, static data members and member
templates; and it causes the implicit instantiation of the definitions of
unscoped member enumerations and member anonymous unions."

So I don't think that the instantiation of Base<Derived> requires the
instantiation of the definition of Base<Derived>::i.

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