public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34314]  New: ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth
@ 2007-12-02 10:37 eric dot niebler at gmail dot com
  2007-12-02 21:10 ` [Bug c++/34314] [4.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: eric dot niebler at gmail dot com @ 2007-12-02 10:37 UTC (permalink / raw)
  To: gcc-bugs

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

Compile with -std=c++0x

template<typename Fun, typename... Args>
struct call;

template<typename Fun, typename Arg0>
struct call
{
    template<typename Sig>
    struct result;

    template<typename X, typename Y>
    struct result<X(Y)>
    {
        typedef X type;
    };
};


-- 
           Summary: ICE on invalid code (with variadic templates): tree
                    check: expected class ‘type’, have ‘exceptional’
                    (error_mark) in template_class_depth
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eric dot niebler at gmail dot com


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


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

* [Bug c++/34314] [4.3 Regression] ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth
  2007-12-02 10:37 [Bug c++/34314] New: ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth eric dot niebler at gmail dot com
@ 2007-12-02 21:10 ` pinskia at gcc dot gnu dot org
  2007-12-12 20:57 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-12-02 21:10 UTC (permalink / raw)
  To: gcc-bugs

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



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-12-02 21:10 -------
Confirmed, this is only an error recovery regression.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2007-12-02 21:10:03
               date|                            |
            Summary|ICE on invalid code (with   |[4.3 Regression] ICE on
                   |variadic templates): tree   |invalid code (with variadic
                   |check: expected class       |templates): tree check:
                   |‘type’, have            |expected class ‘type’,
                   |‘exceptional’           |have ‘exceptional’
                   |(error_mark) in             |(error_mark) in
                   |template_class_depth        |template_class_depth
   Target Milestone|---                         |4.3.0


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


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

* [Bug c++/34314] [4.3 Regression] ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth
  2007-12-02 10:37 [Bug c++/34314] New: ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth eric dot niebler at gmail dot com
  2007-12-02 21:10 ` [Bug c++/34314] [4.3 Regression] " pinskia at gcc dot gnu dot org
@ 2007-12-12 20:57 ` mmitchel at gcc dot gnu dot org
  2007-12-20 21:08 ` dgregor at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-12-12 20:57 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug c++/34314] [4.3 Regression] ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth
  2007-12-02 10:37 [Bug c++/34314] New: ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth eric dot niebler at gmail dot com
  2007-12-02 21:10 ` [Bug c++/34314] [4.3 Regression] " pinskia at gcc dot gnu dot org
  2007-12-12 20:57 ` mmitchel at gcc dot gnu dot org
@ 2007-12-20 21:08 ` dgregor at gcc dot gnu dot org
  2008-01-08 17:19 ` steven at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2007-12-20 21:08 UTC (permalink / raw)
  To: gcc-bugs



-- 

dgregor at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |dgregor at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-12-02 21:10:03         |2007-12-20 21:08:40
               date|                            |


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


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

* [Bug c++/34314] [4.3 Regression] ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth
  2007-12-02 10:37 [Bug c++/34314] New: ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth eric dot niebler at gmail dot com
                   ` (2 preceding siblings ...)
  2007-12-20 21:08 ` dgregor at gcc dot gnu dot org
@ 2008-01-08 17:19 ` steven at gcc dot gnu dot org
  2008-01-15  0:25 ` dgregor at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: steven at gcc dot gnu dot org @ 2008-01-08 17:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from steven at gcc dot gnu dot org  2008-01-08 17:08 -------
*** Bug 34606 has been marked as a duplicate of this bug. ***


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org


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


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

* [Bug c++/34314] [4.3 Regression] ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth
  2007-12-02 10:37 [Bug c++/34314] New: ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth eric dot niebler at gmail dot com
                   ` (3 preceding siblings ...)
  2008-01-08 17:19 ` steven at gcc dot gnu dot org
@ 2008-01-15  0:25 ` dgregor at gcc dot gnu dot org
  2008-01-15  0:30 ` dgregor at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-01-15  0:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dgregor at gcc dot gnu dot org  2008-01-15 00:07 -------
Here, we fail to produce an error message before crashing, so it should
probably be classified as a P2 (which we've been doing for similar variadic
templates issues).


-- 

dgregor at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|doug dot gregor at gmail dot|
                   |com                         |


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


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

* [Bug c++/34314] [4.3 Regression] ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth
  2007-12-02 10:37 [Bug c++/34314] New: ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth eric dot niebler at gmail dot com
                   ` (4 preceding siblings ...)
  2008-01-15  0:25 ` dgregor at gcc dot gnu dot org
@ 2008-01-15  0:30 ` dgregor at gcc dot gnu dot org
  2008-01-15 18:09 ` dgregor at gcc dot gnu dot org
  2008-01-15 18:09 ` dgregor at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-01-15  0:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dgregor at gcc dot gnu dot org  2008-01-15 00:10 -------
Patch here: http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00632.html


-- 


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


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

* [Bug c++/34314] [4.3 Regression] ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth
  2007-12-02 10:37 [Bug c++/34314] New: ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth eric dot niebler at gmail dot com
                   ` (6 preceding siblings ...)
  2008-01-15 18:09 ` dgregor at gcc dot gnu dot org
@ 2008-01-15 18:09 ` dgregor at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-01-15 18:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dgregor at gcc dot gnu dot org  2008-01-15 18:00 -------
Subject: Bug 34314

Author: dgregor
Date: Tue Jan 15 17:59:44 2008
New Revision: 131546

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131546
Log:
2008-01-15  Douglas Gregor  <doug.gregor@gmail.com>

       PR c++/34314
       * error.c (dump_simple_decl): Display ellipsis for template
       non-type parameter packs.
       (dump_decl): Display ellipsis for template type parameter packs.
       (dump_template_decl): Display ellipsis for template template
       parameter packs.
       * pt.c (redeclare_class_template): When redeclaring a class
       template, check for collisions between template parameters and
       template parameter packs.

2008-01-15  Douglas Gregor  <doug.gregor@gmail.com>

       PR c++/34314
       * g++.dg/cpp0x/vt-34314.C: New.
       * g++.dg/cpp0x/variadic79.C: Fix the error message to reflect
       reality (the error message was wrong previously).

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/vt-34314.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/error.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic79.C


-- 


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


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

* [Bug c++/34314] [4.3 Regression] ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth
  2007-12-02 10:37 [Bug c++/34314] New: ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth eric dot niebler at gmail dot com
                   ` (5 preceding siblings ...)
  2008-01-15  0:30 ` dgregor at gcc dot gnu dot org
@ 2008-01-15 18:09 ` dgregor at gcc dot gnu dot org
  2008-01-15 18:09 ` dgregor at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-01-15 18:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dgregor at gcc dot gnu dot org  2008-01-15 18:05 -------
Fixed on mainline


-- 

dgregor at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-01-15 18:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-02 10:37 [Bug c++/34314] New: ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth eric dot niebler at gmail dot com
2007-12-02 21:10 ` [Bug c++/34314] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-12-12 20:57 ` mmitchel at gcc dot gnu dot org
2007-12-20 21:08 ` dgregor at gcc dot gnu dot org
2008-01-08 17:19 ` steven at gcc dot gnu dot org
2008-01-15  0:25 ` dgregor at gcc dot gnu dot org
2008-01-15  0:30 ` dgregor at gcc dot gnu dot org
2008-01-15 18:09 ` dgregor at gcc dot gnu dot org
2008-01-15 18:09 ` dgregor 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).