public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35784]  New: Bogus inaccessibility error on variadic partial template specialization.
@ 2008-04-01  1:50 gcc-bugzilla at contacts dot eelis dot net
  2008-12-29  3:42 ` [Bug c++/35784] [C++0x] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gcc-bugzilla at contacts dot eelis dot net @ 2008-04-01  1:50 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 981 bytes --]

Consider:

  template <typename...> struct p;

  template <typename, typename> struct d;

  template <typename... A, typename... B>
  struct d<p<A...>, p<B...> > { typedef int t; };

  typedef d<p<>, p<int, float> >::t q;
  typedef d<q, d<p<int>, p<float> >::t> r; // *

  typedef d<d<p<>, p<int, float> >::t, d<p<>, p<> >::t> s;
    // error: ‘typedef int d<p<int>, p<float> >::t’ is inaccessible within
this context

The error makes no sense. In fact, it disappears if the unrelated line marked
with an asterisk is removed.


-- 
           Summary: Bogus inaccessibility error on variadic partial template
                    specialization.
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc-bugzilla at contacts dot eelis dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35784


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-07 20:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-01  1:50 [Bug c++/35784] New: Bogus inaccessibility error on variadic partial template specialization gcc-bugzilla at contacts dot eelis dot net
2008-12-29  3:42 ` [Bug c++/35784] [C++0x] " pinskia at gcc dot gnu dot org
2009-01-07  0:06 ` jason at gcc dot gnu dot org
2009-01-07 20:43 ` jason at gcc dot gnu dot org
2009-01-07 20:57 ` jason at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).