This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79163] Access-checking not done in template argument list of partial specialization
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Jan 2017 12:44:44 +0000
- Subject: [Bug c++/79163] Access-checking not done in template argument list of partial specialization
- Auto-submitted: auto-generated
- References: <bug-79163-4@http.gcc.gnu.org/bugzilla/>
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.