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

* [Bug c++/35784] [C++0x] Bogus inaccessibility error on variadic partial template specialization.
  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 ` pinskia at gcc dot gnu dot org
  2009-01-07  0:06 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-29  3:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-12-29 03:38 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2008-12-29 03:38:16
               date|                            |
            Summary|Bogus inaccessibility error |[C++0x] Bogus
                   |on variadic partial template|inaccessibility error on
                   |specialization.             |variadic partial template
                   |                            |specialization.


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


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

* [Bug c++/35784] [C++0x] Bogus inaccessibility error on variadic partial template specialization.
  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
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-07  0:06 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-12-29 03:38:16         |2009-01-07 00:06:12
               date|                            |


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


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

* [Bug c++/35784] [C++0x] Bogus inaccessibility error on variadic partial template specialization.
  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
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-07 20:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jason at gcc dot gnu dot org  2009-01-07 20:43 -------
Subject: Bug 35784

Author: jason
Date: Wed Jan  7 20:43:01 2009
New Revision: 143166

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143166
Log:
        PR c++/35297
        PR c++/35477
        PR c++/35784
        PR c++/36846
        PR c++/38276
        * pt.c (check_default_tmpl_args): Don't complain about
        out-of-order parameter packs in the enclosing class
        or parameter packs after default args.
        (coerce_template_parms): If we have more than one
        parameter pack, don't flatten argument packs.
        (template_args_equal): Handle argument packs.
        (comp_template_args): Don't flatten argument packs.
        (check_instantiated_arg): Split out from...
        (check_instantiated_args): Here.  Handle arg packs.
        (convert_template_argument): Just check that nontype argument
        packs have the right type.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic92.C
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic93.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic65.C
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic82.C
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic83.C


-- 


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


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

* [Bug c++/35784] [C++0x] Bogus inaccessibility error on variadic partial template specialization.
  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
                   ` (2 preceding siblings ...)
  2009-01-07 20:43 ` jason at gcc dot gnu dot org
@ 2009-01-07 20:57 ` jason at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-07 20:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jason at gcc dot gnu dot org  2009-01-07 20:56 -------
Fixed.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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).