public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11041] ICE: const myclass &x = *x; (when operator*() defined)
       [not found] <20030531022537.11041.bisqwit@iki.fi>
@ 2003-06-01 16:12 ` pinskia@physics.uc.edu
  2003-06-02 12:37 ` [Bug c++/11041] [3.3/3.4 regression] " reichelt@gcc.gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-01 16:12 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc-bugs@gcc.gnu.org





------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug c++/11041] [3.3/3.4 regression] ICE: const myclass &x = *x; (when operator*() defined)
       [not found] <20030531022537.11041.bisqwit@iki.fi>
  2003-06-01 16:12 ` [Bug c++/11041] ICE: const myclass &x = *x; (when operator*() defined) pinskia@physics.uc.edu
@ 2003-06-02 12:37 ` reichelt@gcc.gnu.org
  2003-06-02 17:47 ` reichelt@gcc.gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: reichelt@gcc.gnu.org @ 2003-06-02 12:37 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


reichelt@gcc.gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |ice-on-valid-code
            Summary|ICE: const myclass &x = *x; |[3.3/3.4 regression] ICE:
                   |(when operator*() defined)  |const myclass &x = *x; (when
                   |                            |operator*() defined)


------- Additional Comments From reichelt@gcc.gnu.org  2003-06-02 12:37 -------
I think the code is well-formed (although a warning would be nice).
The code actually compiles with gcc 3.0.x, but ICE's with gcc 2.95.x
and since 3.1.
Thus, we have a regression.




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug c++/11041] [3.3/3.4 regression] ICE: const myclass &x = *x; (when operator*() defined)
       [not found] <20030531022537.11041.bisqwit@iki.fi>
  2003-06-01 16:12 ` [Bug c++/11041] ICE: const myclass &x = *x; (when operator*() defined) pinskia@physics.uc.edu
  2003-06-02 12:37 ` [Bug c++/11041] [3.3/3.4 regression] " reichelt@gcc.gnu.org
@ 2003-06-02 17:47 ` reichelt@gcc.gnu.org
  2003-06-08 19:07 ` pinskia@physics.uc.edu
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: reichelt@gcc.gnu.org @ 2003-06-02 17:47 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From reichelt@gcc.gnu.org  2003-06-02 17:47 -------
Probably related to PR 4907.




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug c++/11041] [3.3/3.4 regression] ICE: const myclass &x = *x; (when operator*() defined)
       [not found] <20030531022537.11041.bisqwit@iki.fi>
                   ` (2 preceding siblings ...)
  2003-06-02 17:47 ` reichelt@gcc.gnu.org
@ 2003-06-08 19:07 ` pinskia@physics.uc.edu
  2003-06-19 19:41 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-08 19:07 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.3.1


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

* [Bug c++/11041] [3.3/3.4 regression] ICE: const myclass &x = *x; (when operator*() defined)
       [not found] <20030531022537.11041.bisqwit@iki.fi>
                   ` (3 preceding siblings ...)
  2003-06-08 19:07 ` pinskia@physics.uc.edu
@ 2003-06-19 19:41 ` reichelt at gcc dot gnu dot org
  2003-06-19 19:54 ` [Bug middle-end/11041] " pinskia at physics dot uc dot edu
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-06-19 19:41 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From reichelt at gcc dot gnu dot org  2003-06-19 19:38 -------
The bug (also PR 4907) is fixed on the tree-ssa-branch.


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

* [Bug middle-end/11041] [3.3/3.4 regression] ICE: const myclass &x = *x; (when operator*() defined)
       [not found] <20030531022537.11041.bisqwit@iki.fi>
                   ` (4 preceding siblings ...)
  2003-06-19 19:41 ` reichelt at gcc dot gnu dot org
@ 2003-06-19 19:54 ` pinskia at physics dot uc dot edu
  2003-06-20  0:48 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-06-19 19:54 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |middle-end


------- Additional Comments From pinskia at physics dot uc dot edu  2003-06-19 19:48 -------
Changing this to the middle end because the ICE is in varasm.c or expr.c which is in the middle-
end


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

* [Bug middle-end/11041] [3.3/3.4 regression] ICE: const myclass &x = *x; (when operator*() defined)
       [not found] <20030531022537.11041.bisqwit@iki.fi>
                   ` (5 preceding siblings ...)
  2003-06-19 19:54 ` [Bug middle-end/11041] " pinskia at physics dot uc dot edu
@ 2003-06-20  0:48 ` cvs-commit at gcc dot gnu dot org
  2003-06-20  1:18 ` cvs-commit at gcc dot gnu dot org
  2003-06-20  1:22 ` mmitchel at gcc dot gnu dot org
  8 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-06-20  0:48 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-06-20 00:48 -------
Subject: Bug 11041

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2003-06-20 00:48:44

Modified files:
	gcc/cp         : ChangeLog call.c cp-tree.h decl.c decl.h 
	                 decl2.c rtti.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/init: ref7.C 

Log message:
	PR c++/11041
	* call.c (initialize_reference): Do not use cp_finish_decl to emit
	temporary variables.
	* cp-tree.h (static_aggregates): Declare.
	(pushdecl_top_level_and_finish): Likewise.
	* decl.c (pushdecl_top_level_1): New function.
	(pushdecl_top_level): Use it.
	(pushdecl_top_level_and_finish): New function.
	(initialize_local_var): Remove redundant code.
	(cp_finish_decl): Remove support for RESULT_DECLs.  Don't check
	building_stmt_tree.
	* decl.h (static_aggregates): Remove.
	* decl2.c (get_guard): Use pushdecl_top_level_and_finish.
	* rtti.c (get_tinfo_decl): Use pushdecl_top_level_and_finish.
	(tinfo_base_init): Likewise.
	
	PR c++/11041
	* g++.dg/init/ref7.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3439&r2=1.3440
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.387&r2=1.388
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&r1=1.856&r2=1.857
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1067&r2=1.1068
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.h.diff?cvsroot=gcc&r1=1.10&r2=1.11
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl2.c.diff?cvsroot=gcc&r1=1.629&r2=1.630
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/rtti.c.diff?cvsroot=gcc&r1=1.163&r2=1.164
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.2781&r2=1.2782
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/ref7.C.diff?cvsroot=gcc&r1=NONE&r2=1.1


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

* [Bug middle-end/11041] [3.3/3.4 regression] ICE: const myclass &x = *x; (when operator*() defined)
       [not found] <20030531022537.11041.bisqwit@iki.fi>
                   ` (6 preceding siblings ...)
  2003-06-20  0:48 ` cvs-commit at gcc dot gnu dot org
@ 2003-06-20  1:18 ` cvs-commit at gcc dot gnu dot org
  2003-06-20  1:22 ` mmitchel at gcc dot gnu dot org
  8 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-06-20  1:18 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-06-20 01:18 -------
Subject: Bug 11041

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	mmitchel@gcc.gnu.org	2003-06-20 01:18:48

Modified files:
	gcc/cp         : ChangeLog call.c cp-tree.h decl.c decl.h 
	                 decl2.c rtti.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/init: ref7.C 

Log message:
	PR c++/11041
	* call.c (initialize_reference): Do not use cp_finish_decl to emit
	temporary variables.
	* cp-tree.h (static_aggregates): Declare.
	(pushdecl_top_level_and_finish): Likewise.
	* decl.c (pushdecl_top_level_1): New function.
	(pushdecl_top_level): Use it.
	(pushdecl_top_level_and_finish): New function.
	(initialize_local_var): Remove redundant code.
	(cp_finish_decl): Remove support for RESULT_DECLs.  Don't check
	building_stmt_tree.
	* decl.h (static_aggregates): Remove.
	* decl2.c (get_guard): Use pushdecl_top_level_and_finish.
	* rtti.c (get_tinfo_decl): Use pushdecl_top_level_and_finish.
	(tinfo_base_init): Likewise.
	
	PR c++/11041
	* g++.dg/init/ref7.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.153&r2=1.3076.2.154
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.341.2.20&r2=1.341.2.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.776.2.21&r2=1.776.2.22
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.965.2.48&r2=1.965.2.49
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.8&r2=1.8.20.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl2.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.575.2.29&r2=1.575.2.30
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/rtti.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.146.2.1&r2=1.146.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.191&r2=1.2261.2.192
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/ref7.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.2.1


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

* [Bug middle-end/11041] [3.3/3.4 regression] ICE: const myclass &x = *x; (when operator*() defined)
       [not found] <20030531022537.11041.bisqwit@iki.fi>
                   ` (7 preceding siblings ...)
  2003-06-20  1:18 ` cvs-commit at gcc dot gnu dot org
@ 2003-06-20  1:22 ` mmitchel at gcc dot gnu dot org
  8 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-06-20  1:22 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


mmitchel at gcc dot gnu dot org changed:

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


------- Additional Comments From mmitchel at gcc dot gnu dot org  2003-06-20 01:22 -------
Fixed in GCC 3.3.1, GCC 3.4.


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

end of thread, other threads:[~2003-06-20  1:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030531022537.11041.bisqwit@iki.fi>
2003-06-01 16:12 ` [Bug c++/11041] ICE: const myclass &x = *x; (when operator*() defined) pinskia@physics.uc.edu
2003-06-02 12:37 ` [Bug c++/11041] [3.3/3.4 regression] " reichelt@gcc.gnu.org
2003-06-02 17:47 ` reichelt@gcc.gnu.org
2003-06-08 19:07 ` pinskia@physics.uc.edu
2003-06-19 19:41 ` reichelt at gcc dot gnu dot org
2003-06-19 19:54 ` [Bug middle-end/11041] " pinskia at physics dot uc dot edu
2003-06-20  0:48 ` cvs-commit at gcc dot gnu dot org
2003-06-20  1:18 ` cvs-commit at gcc dot gnu dot org
2003-06-20  1:22 ` 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).