This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70820] GCC incorrectly accepts code that accesses nested names in an incomplete type
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Apr 2016 14:46:29 +0000
- Subject: [Bug c++/70820] GCC incorrectly accepts code that accesses nested names in an incomplete type
- Auto-submitted: auto-generated
- References: <bug-70820-4 at http dot gcc dot gnu dot org/bugzilla/>
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.