public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20333] ICE
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
@ 2005-03-05 10:42 ` igodard at pacbell dot net
  2005-03-05 10:43 ` igodard at pacbell dot net
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: igodard at pacbell dot net @ 2005-03-05 10:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From igodard at pacbell dot net  2005-03-05 10:42 -------
Created an attachment (id=8335)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8335&action=view)
Compiler output (-v -save-temps)


-- 


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


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

* [Bug c++/20333] New: ICE
@ 2005-03-05 10:42 igodard at pacbell dot net
  2005-03-05 10:42 ` [Bug c++/20333] ICE igodard at pacbell dot net
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: igodard at pacbell dot net @ 2005-03-05 10:42 UTC (permalink / raw)
  To: gcc-bugs

 

-- 
           Summary: ICE
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/20333] ICE
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
  2005-03-05 10:42 ` [Bug c++/20333] ICE igodard at pacbell dot net
@ 2005-03-05 10:43 ` igodard at pacbell dot net
  2005-03-05 16:44 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: igodard at pacbell dot net @ 2005-03-05 10:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From igodard at pacbell dot net  2005-03-05 10:43 -------
Created an attachment (id=8336)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8336&action=view)
Source code (-save-temps) (compressed)


-- 


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


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

* [Bug c++/20333] ICE
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
  2005-03-05 10:42 ` [Bug c++/20333] ICE igodard at pacbell dot net
  2005-03-05 10:43 ` igodard at pacbell dot net
@ 2005-03-05 16:44 ` pinskia at gcc dot gnu dot org
  2005-03-05 19:26 ` [Bug c++/20333] ICE on invalid code pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-05 16:44 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #8335|application/octet-stream    |text/plain
          mime type|                            |


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


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

* [Bug c++/20333] ICE on invalid code
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
                   ` (2 preceding siblings ...)
  2005-03-05 16:44 ` pinskia at gcc dot gnu dot org
@ 2005-03-05 19:26 ` pinskia at gcc dot gnu dot org
  2005-03-05 19:31 ` [Bug c++/20333] ICE pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-05 19:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-05 19:26 -------
The code is invalid as you don't have a closing ")" for a function in the array declaration of exuApis.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
            Summary|ICE                         |ICE on invalid code


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


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

* [Bug c++/20333] ICE
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
                   ` (3 preceding siblings ...)
  2005-03-05 19:26 ` [Bug c++/20333] ICE on invalid code pinskia at gcc dot gnu dot org
@ 2005-03-05 19:31 ` pinskia at gcc dot gnu dot org
  2005-03-05 19:40 ` [Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-05 19:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-05 19:31 -------
Hmm, but I can reduce it to look like valid code.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |
            Summary|ICE on invalid code         |ICE


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


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

* [Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
                   ` (4 preceding siblings ...)
  2005-03-05 19:31 ` [Bug c++/20333] ICE pinskia at gcc dot gnu dot org
@ 2005-03-05 19:40 ` pinskia at gcc dot gnu dot org
  2005-03-08  2:25 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-05 19:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-05 19:40 -------
I take that back, this is invalid code still, the typename keyword is not valid outside of a template.
Reduced testcase:
template<class> struct f {};
f<int> f2[2] = {typename f<int>()};

This is a regression from 3.3.3.  We should be able to recover much better in 3.4.0 than we did in 3.3.3 
but we don't.  In fact I would have assumed that we would get a better error message before ICEing.  
Even though in the full testcase we don't get an error, we do in the reduced testcase though:
t.cc:3: error: expected nested-name-specifier


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
      Known to fail|                            |3.4.0 4.1.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-05 19:40:09
               date|                            |
            Summary|ICE                         |[3.4/4.0/4.1 Regression] ICE
                   |                            |on invalid code, typename
                   |                            |outside of a template
   Target Milestone|---                         |3.4.4


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


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

* [Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
                   ` (5 preceding siblings ...)
  2005-03-05 19:40 ` [Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template pinskia at gcc dot gnu dot org
@ 2005-03-08  2:25 ` pinskia at gcc dot gnu dot org
  2005-03-11 16:20 ` lerdsuwa at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-08  2:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-08 02:24 -------
: Search converges between 2004-03-01-trunk (#446) and 2004-04-01-trunk (#447).
: Search converges between 2004-03-15-3.4 (#3) and 2004-04-01-3.4 (#4).

-- 


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


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

* [Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
                   ` (6 preceding siblings ...)
  2005-03-08  2:25 ` pinskia at gcc dot gnu dot org
@ 2005-03-11 16:20 ` lerdsuwa at gcc dot gnu dot org
  2005-03-12 12:41 ` lerdsuwa at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-03-11 16:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2005-03-11 16:19 -------
Got it.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |lerdsuwa at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-03-05 19:40:09         |2005-03-11 16:19:56
               date|                            |


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


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

* [Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
                   ` (7 preceding siblings ...)
  2005-03-11 16:20 ` lerdsuwa at gcc dot gnu dot org
@ 2005-03-12 12:41 ` lerdsuwa at gcc dot gnu dot org
  2005-03-19 12:17 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-03-12 12:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2005-03-12 12:41 -------
Patch submitted:
  http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01207.html


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
                   ` (8 preceding siblings ...)
  2005-03-12 12:41 ` lerdsuwa at gcc dot gnu dot org
@ 2005-03-19 12:17 ` cvs-commit at gcc dot gnu dot org
  2005-03-19 12:22 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-19 12:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-19 12:12 -------
Subject: Bug 20333

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	lerdsuwa@gcc.gnu.org	2005-03-19 11:54:49

Modified files:
	gcc/cp         : ChangeLog parser.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/template: crash36.C 

Log message:
	PR c++/20333
	* parser.c (cp_parser_postfix_expression) <case RID_TYPENAME>:
	Check the return value of cp_parser_nested_name_specifier.
	
	* g++.dg/template/crash36.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4666&r2=1.4667
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.322&r2=1.323
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5181&r2=1.5182
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash36.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
                   ` (9 preceding siblings ...)
  2005-03-19 12:17 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-19 12:22 ` cvs-commit at gcc dot gnu dot org
  2005-03-19 12:27 ` cvs-commit at gcc dot gnu dot org
  2005-03-19 12:28 ` lerdsuwa at gcc dot gnu dot org
  12 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-19 12:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-19 12:19 -------
Subject: Bug 20333

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	lerdsuwa@gcc.gnu.org	2005-03-19 12:16:55

Modified files:
	gcc/cp         : ChangeLog parser.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/template: crash36.C 

Log message:
	PR c++/20333
	* parser.c (cp_parser_postfix_expression) <case RID_TYPENAME>:
	Check the return value of cp_parser_nested_name_specifier.
	
	* g++.dg/template/crash36.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.11&r2=1.4648.2.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.319&r2=1.319.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.51&r2=1.5084.2.52
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash36.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
                   ` (10 preceding siblings ...)
  2005-03-19 12:22 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-19 12:27 ` cvs-commit at gcc dot gnu dot org
  2005-03-19 12:28 ` lerdsuwa at gcc dot gnu dot org
  12 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-19 12:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-19 12:27 -------
Subject: Bug 20333

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	lerdsuwa@gcc.gnu.org	2005-03-19 12:26:37

Modified files:
	gcc/cp         : ChangeLog parser.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/template: crash36.C 

Log message:
	PR c++/20333
	* parser.c (cp_parser_postfix_expression) <case RID_TYPENAME>:
	Check the return value of cp_parser_nested_name_specifier.
	
	* g++.dg/template/crash36.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.205&r2=1.3892.2.206
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.157.2.53&r2=1.157.2.54
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.372&r2=1.3389.2.373
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash36.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.4.1



-- 


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


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

* [Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template
  2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
                   ` (11 preceding siblings ...)
  2005-03-19 12:27 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-19 12:28 ` lerdsuwa at gcc dot gnu dot org
  12 siblings, 0 replies; 15+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-03-19 12:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2005-03-19 12:27 -------
Fixed in 3.4/4.0/4.1.

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


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


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

* [Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template
       [not found] <bug-20333-6594@http.gcc.gnu.org/bugzilla/>
@ 2006-02-17 18:06 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-17 18:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from pinskia at gcc dot gnu dot org  2006-02-17 18:06 -------
*** Bug 26343 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |julian dot rueth at
                   |                            |informatik dot uni-ulm dot
                   |                            |de


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


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

end of thread, other threads:[~2006-02-17 18:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-05 10:42 [Bug c++/20333] New: ICE igodard at pacbell dot net
2005-03-05 10:42 ` [Bug c++/20333] ICE igodard at pacbell dot net
2005-03-05 10:43 ` igodard at pacbell dot net
2005-03-05 16:44 ` pinskia at gcc dot gnu dot org
2005-03-05 19:26 ` [Bug c++/20333] ICE on invalid code pinskia at gcc dot gnu dot org
2005-03-05 19:31 ` [Bug c++/20333] ICE pinskia at gcc dot gnu dot org
2005-03-05 19:40 ` [Bug c++/20333] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template pinskia at gcc dot gnu dot org
2005-03-08  2:25 ` pinskia at gcc dot gnu dot org
2005-03-11 16:20 ` lerdsuwa at gcc dot gnu dot org
2005-03-12 12:41 ` lerdsuwa at gcc dot gnu dot org
2005-03-19 12:17 ` cvs-commit at gcc dot gnu dot org
2005-03-19 12:22 ` cvs-commit at gcc dot gnu dot org
2005-03-19 12:27 ` cvs-commit at gcc dot gnu dot org
2005-03-19 12:28 ` lerdsuwa at gcc dot gnu dot org
     [not found] <bug-20333-6594@http.gcc.gnu.org/bugzilla/>
2006-02-17 18:06 ` pinskia 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).