public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17685] New: internal compiler error: in grokdeclarator, at cp/decl.c:8047
@ 2004-09-27  6:56 jkherciueh at gmx dot net
  2004-09-27 10:24 ` [Bug c++/17685] [3.4/4.0 regression] ICE " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jkherciueh at gmx dot net @ 2004-09-27  6:56 UTC (permalink / raw)
  To: gcc-bugs

I came across the following typo in comp.lang.c++. It triggers an
internal error:

class yyy {
  operator void operator++();
}

I was using gcc-3.4.2:

Reading specs from
/mnt/target/lfs/my_dist/shaddow/pkg/gcc-3.4.2/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/specs
Configured with: ../gcc-3.4.2/configure
--prefix=/mnt/target/lfs/my_dist/shaddow/pkg/gcc-3.4.2/usr --enable-shared
--enable-threads
Thread model: posix
gcc version 3.4.2

Best

Kai-Uwe Bux

-- 
           Summary: internal compiler error: in grokdeclarator, at
                    cp/decl.c:8047
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jkherciueh at gmx dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/17685] [3.4/4.0 regression] ICE in grokdeclarator, at cp/decl.c:8047
  2004-09-27  6:56 [Bug c++/17685] New: internal compiler error: in grokdeclarator, at cp/decl.c:8047 jkherciueh at gmx dot net
@ 2004-09-27 10:24 ` reichelt at gcc dot gnu dot org
  2004-09-27 11:35 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-09-27 10:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-09-27 10:24 -------
Confirmed.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code,
                   |                            |monitored
      Known to fail|                            |3.4.0 3.4.2 4.0.0
      Known to work|                            |3.3.4
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-27 10:24:08
               date|                            |
            Summary|internal compiler error: in |[3.4/4.0 regression] ICE in
                   |grokdeclarator, at          |grokdeclarator, at
                   |cp/decl.c:8047              |cp/decl.c:8047
   Target Milestone|---                         |3.4.3


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


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

* [Bug c++/17685] [3.4/4.0 regression] ICE in grokdeclarator, at cp/decl.c:8047
  2004-09-27  6:56 [Bug c++/17685] New: internal compiler error: in grokdeclarator, at cp/decl.c:8047 jkherciueh at gmx dot net
  2004-09-27 10:24 ` [Bug c++/17685] [3.4/4.0 regression] ICE " reichelt at gcc dot gnu dot org
@ 2004-09-27 11:35 ` pinskia at gcc dot gnu dot org
  2004-09-27 11:37 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-27 11:35 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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


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

* [Bug c++/17685] [3.4/4.0 regression] ICE in grokdeclarator, at cp/decl.c:8047
  2004-09-27  6:56 [Bug c++/17685] New: internal compiler error: in grokdeclarator, at cp/decl.c:8047 jkherciueh at gmx dot net
  2004-09-27 10:24 ` [Bug c++/17685] [3.4/4.0 regression] ICE " reichelt at gcc dot gnu dot org
  2004-09-27 11:35 ` pinskia at gcc dot gnu dot org
@ 2004-09-27 11:37 ` pinskia at gcc dot gnu dot org
  2004-10-03 23:18 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-27 11:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-27 11:37 -------
: Search converges between 2002-12-14-trunk (#159) and 2002-12-29-trunk (#160).
Looks like the new parser which caused this one.

-- 


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


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

* [Bug c++/17685] [3.4/4.0 regression] ICE in grokdeclarator, at cp/decl.c:8047
  2004-09-27  6:56 [Bug c++/17685] New: internal compiler error: in grokdeclarator, at cp/decl.c:8047 jkherciueh at gmx dot net
                   ` (2 preceding siblings ...)
  2004-09-27 11:37 ` pinskia at gcc dot gnu dot org
@ 2004-10-03 23:18 ` mmitchel at gcc dot gnu dot org
  2004-10-09 17:33 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-10-03 23:18 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/17685] [3.4/4.0 regression] ICE in grokdeclarator, at cp/decl.c:8047
  2004-09-27  6:56 [Bug c++/17685] New: internal compiler error: in grokdeclarator, at cp/decl.c:8047 jkherciueh at gmx dot net
                   ` (3 preceding siblings ...)
  2004-10-03 23:18 ` mmitchel at gcc dot gnu dot org
@ 2004-10-09 17:33 ` cvs-commit at gcc dot gnu dot org
  2004-10-09 17:55 ` cvs-commit at gcc dot gnu dot org
  2004-10-09 17:58 ` mmitchel at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-09 17:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-09 17:33 -------
Subject: Bug 17685

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-10-09 17:33:02

Modified files:
	gcc/testsuite  : ChangeLog 
	gcc/cp         : ChangeLog cp-tree.h decl.c pt.c 
Added files:
	gcc/testsuite/g++.dg/parse: operator5.C 
	gcc/testsuite/g++.dg/template: static9.C 

Log message:
	PR c++/17524
	* cp-tree.h (check_var_type): New function.
	* decl.c (check_var_type): New function, split out from ...
	(grokdeclarator): ... here.
	* pt.c (tsubst_decl): Use check_var_type.
	
	PR c++/17685
	* decl.c (grokdeclarator): Disallow declarations of operators as
	
	PR c++/17524
	* g++.dg/template/static9.C: New test.
	
	PR c++/17685
	* g++.dg/parse/operator5.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4419&r2=1.4420
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4415&r2=1.4416
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&r1=1.1058&r2=1.1059
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1311&r2=1.1312
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.933&r2=1.934
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/operator5.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/static9.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/17685] [3.4/4.0 regression] ICE in grokdeclarator, at cp/decl.c:8047
  2004-09-27  6:56 [Bug c++/17685] New: internal compiler error: in grokdeclarator, at cp/decl.c:8047 jkherciueh at gmx dot net
                   ` (4 preceding siblings ...)
  2004-10-09 17:33 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-09 17:55 ` cvs-commit at gcc dot gnu dot org
  2004-10-09 17:58 ` mmitchel at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-09 17:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-09 17:55 -------
Subject: Bug 17685

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	mmitchel@gcc.gnu.org	2004-10-09 17:55:31

Modified files:
	gcc/cp         : ChangeLog cp-tree.h decl.c pt.c 
Added files:
	gcc/testsuite/g++.dg/parse: operator5.C 
	gcc/testsuite/g++.dg/template: static9.C 

Log message:
	PR c++/17524
	* cp-tree.h (check_var_type): New function.
	* decl.c (check_var_type): New function, split out from ...
	(grokdeclarator): ... here.
	* pt.c (tsubst_decl): Use check_var_type.
	
	PR c++/17685
	* decl.c (grokdeclarator): Disallow declarations of operators as
	non-functions.
	
	PR c++/17524
	* g++.dg/template/static9.C: New test.
	
	PR c++/17685
	* g++.dg/parse/operator5.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.164&r2=1.3892.2.165
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.946.4.16&r2=1.946.4.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1174.2.24&r2=1.1174.2.25
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.816.2.42&r2=1.816.2.43
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/operator5.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/static9.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug c++/17685] [3.4/4.0 regression] ICE in grokdeclarator, at cp/decl.c:8047
  2004-09-27  6:56 [Bug c++/17685] New: internal compiler error: in grokdeclarator, at cp/decl.c:8047 jkherciueh at gmx dot net
                   ` (5 preceding siblings ...)
  2004-10-09 17:55 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-09 17:58 ` mmitchel at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-10-09 17:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-10-09 17:58 -------
Fixed in GCC 3.4.3.

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


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


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

end of thread, other threads:[~2004-10-09 17:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-27  6:56 [Bug c++/17685] New: internal compiler error: in grokdeclarator, at cp/decl.c:8047 jkherciueh at gmx dot net
2004-09-27 10:24 ` [Bug c++/17685] [3.4/4.0 regression] ICE " reichelt at gcc dot gnu dot org
2004-09-27 11:35 ` pinskia at gcc dot gnu dot org
2004-09-27 11:37 ` pinskia at gcc dot gnu dot org
2004-10-03 23:18 ` mmitchel at gcc dot gnu dot org
2004-10-09 17:33 ` cvs-commit at gcc dot gnu dot org
2004-10-09 17:55 ` cvs-commit at gcc dot gnu dot org
2004-10-09 17:58 ` mmitchel 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).