public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32567] [4.3 regression] ICE on invalid use of parameter pack
  2007-06-30 16:57 [Bug c++/32567] New: [4.3 regression] ICE on invalid use of parameter pack reichelt at gcc dot gnu dot org
@ 2007-06-30 16:57 ` reichelt at gcc dot gnu dot org
  2007-08-06 15:29 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-06-30 16:57 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.0


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


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

* [Bug c++/32567]  New: [4.3 regression] ICE on invalid use of parameter pack
@ 2007-06-30 16:57 reichelt at gcc dot gnu dot org
  2007-06-30 16:57 ` [Bug c++/32567] " reichelt at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-06-30 16:57 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline:

============================================================
template <typename... T> struct A
{
  static T &t;
  static const int i = sizeof(++t);
};

int x[A<int>::i];
============================================================

bug.cc:3: error: parameter packs not expanded with `...':
bug.cc:3: note:         'T'
bug.cc: In instantiation of 'const int A<int>::i':
bug.cc:7:   instantiated from here
bug.cc:4: error: invalid use of template type parameter 'T'
bug.cc:4: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in get_unwidened, at tree.c:5887
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE on invalid use of parameter pack
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/32567] [4.3 regression] ICE on invalid use of parameter pack
  2007-06-30 16:57 [Bug c++/32567] New: [4.3 regression] ICE on invalid use of parameter pack reichelt at gcc dot gnu dot org
  2007-06-30 16:57 ` [Bug c++/32567] " reichelt at gcc dot gnu dot org
@ 2007-08-06 15:29 ` pinskia at gcc dot gnu dot org
  2007-08-10  0:34 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-06 15:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-08-06 15:29 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-08-06 15:29:20
               date|                            |


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


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

* [Bug c++/32567] [4.3 regression] ICE on invalid use of parameter pack
  2007-06-30 16:57 [Bug c++/32567] New: [4.3 regression] ICE on invalid use of parameter pack reichelt at gcc dot gnu dot org
  2007-06-30 16:57 ` [Bug c++/32567] " reichelt at gcc dot gnu dot org
  2007-08-06 15:29 ` pinskia at gcc dot gnu dot org
@ 2007-08-10  0:34 ` mmitchel at gcc dot gnu dot org
  2007-08-21 18:26 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-08-10  0:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c++/32567] [4.3 regression] ICE on invalid use of parameter pack
  2007-06-30 16:57 [Bug c++/32567] New: [4.3 regression] ICE on invalid use of parameter pack reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-08-10  0:34 ` mmitchel at gcc dot gnu dot org
@ 2007-08-21 18:26 ` jakub at gcc dot gnu dot org
  2007-08-24  6:55 ` jakub at gcc dot gnu dot org
  2007-08-24  7:03 ` jakub at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-08-21 18:26 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2007-
                   |                            |08/msg01382.html
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-08-06 15:29:20         |2007-08-21 18:26:26
               date|                            |


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


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

* [Bug c++/32567] [4.3 regression] ICE on invalid use of parameter pack
  2007-06-30 16:57 [Bug c++/32567] New: [4.3 regression] ICE on invalid use of parameter pack reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-08-21 18:26 ` jakub at gcc dot gnu dot org
@ 2007-08-24  6:55 ` jakub at gcc dot gnu dot org
  2007-08-24  7:03 ` jakub at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-08-24  6:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2007-08-24 06:55 -------
Subject: Bug 32567

Author: jakub
Date: Fri Aug 24 06:54:49 2007
New Revision: 127760

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127760
Log:
        PR c++/32567
        * typeck.c (build_unary_op) <case PREINCREMENT_EXPR>: Return
        error_mark_node right away if build_expr_type_conversion
        returned it.

        * g++.dg/parse/crash36.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/crash36.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/32567] [4.3 regression] ICE on invalid use of parameter pack
  2007-06-30 16:57 [Bug c++/32567] New: [4.3 regression] ICE on invalid use of parameter pack reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-08-24  6:55 ` jakub at gcc dot gnu dot org
@ 2007-08-24  7:03 ` jakub at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-08-24  7:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2007-08-24 07:03 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-08-24  7:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-30 16:57 [Bug c++/32567] New: [4.3 regression] ICE on invalid use of parameter pack reichelt at gcc dot gnu dot org
2007-06-30 16:57 ` [Bug c++/32567] " reichelt at gcc dot gnu dot org
2007-08-06 15:29 ` pinskia at gcc dot gnu dot org
2007-08-10  0:34 ` mmitchel at gcc dot gnu dot org
2007-08-21 18:26 ` jakub at gcc dot gnu dot org
2007-08-24  6:55 ` jakub at gcc dot gnu dot org
2007-08-24  7:03 ` jakub 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).