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++/79163] Access-checking not done in template argument list of partial specialization


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-01-20
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
With 4.9 and earlier you only get the error once:

access.cc: In instantiation of ‘struct Detect<X>’:
access.cc:14:10:   required from here
access.cc:12:28: error: ‘using type = long int’ is private
 class X { using type = long; };
                            ^
access.cc:10:34: error: within this context
   { using type = typename T::type; };
                                  ^

So the repeated diagnostics is a regression, but it would be better not to
issue any diagnostics at all.

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