public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28288] [4.0/4.1/4.2 regression] ICE with min/max operator
2006-07-06 16:53 [Bug c++/28288] New: [4.0/4.1/4.2 regression] ICE with min/max operator reichelt at gcc dot gnu dot org
@ 2006-07-06 16:53 ` reichelt at gcc dot gnu dot org
2006-07-06 16:57 ` 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 @ 2006-07-06 16:53 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28288] New: [4.0/4.1/4.2 regression] ICE with min/max operator
@ 2006-07-06 16:53 reichelt at gcc dot gnu dot org
2006-07-06 16:53 ` [Bug c++/28288] " reichelt at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-06 16:53 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE since GCC 4.0.0:
=============================================
void foo(int i)
{
(i++ <? i) ++;
}
=============================================
bug.cc: In function 'void foo(int)':
bug.cc:3: warning: minimum/maximum operators are deprecated
bug.cc:3: internal compiler error: in rationalize_conditional_expr, at
cp/typeck.c:1653
Please submit a full bug report, [etc.]
--
Summary: [4.0/4.1/4.2 regression] ICE with min/max operator
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, 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=28288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28288] [4.0/4.1/4.2 regression] ICE with min/max operator
2006-07-06 16:53 [Bug c++/28288] New: [4.0/4.1/4.2 regression] ICE with min/max operator reichelt at gcc dot gnu dot org
2006-07-06 16:53 ` [Bug c++/28288] " reichelt at gcc dot gnu dot org
@ 2006-07-06 16:57 ` pinskia at gcc dot gnu dot org
2006-07-17 3:10 ` mmitchel 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 @ 2006-07-06 16:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-06 16:57 -------
This is why they are deprecated :).
Anyways this is PR 14556 is the PR about removing them, I don't know why they
have not been removed yet.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |14556
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28288] [4.0/4.1/4.2 regression] ICE with min/max operator
2006-07-06 16:53 [Bug c++/28288] New: [4.0/4.1/4.2 regression] ICE with min/max operator reichelt at gcc dot gnu dot org
2006-07-06 16:53 ` [Bug c++/28288] " reichelt at gcc dot gnu dot org
2006-07-06 16:57 ` pinskia at gcc dot gnu dot org
@ 2006-07-17 3:10 ` mmitchel at gcc dot gnu dot org
2006-08-12 21:44 ` janis at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17 3:10 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=28288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28288] [4.0/4.1/4.2 regression] ICE with min/max operator
2006-07-06 16:53 [Bug c++/28288] New: [4.0/4.1/4.2 regression] ICE with min/max operator reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-07-17 3:10 ` mmitchel at gcc dot gnu dot org
@ 2006-08-12 21:44 ` janis at gcc dot gnu dot org
2006-08-14 23:14 ` sje at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-08-12 21:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from janis at gcc dot gnu dot org 2006-08-12 21:44 -------
A regression hunt on powerpc-linux identified the following patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=87810
r87810 | sayle | 2004-09-21 16:20:12 +0000 (Tue, 21 Sep 2004)
--
janis at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sayle at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28288] [4.0/4.1/4.2 regression] ICE with min/max operator
2006-07-06 16:53 [Bug c++/28288] New: [4.0/4.1/4.2 regression] ICE with min/max operator reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-08-12 21:44 ` janis at gcc dot gnu dot org
@ 2006-08-14 23:14 ` sje at gcc dot gnu dot org
2006-08-14 23:16 ` sje at gcc dot gnu dot org
2006-08-15 0:52 ` [Bug c++/28288] [4.0/4.1 " pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: sje at gcc dot gnu dot org @ 2006-08-14 23:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from sje at gcc dot gnu dot org 2006-08-14 23:14 -------
Subject: Bug 28288
Author: sje
Date: Mon Aug 14 23:13:54 2006
New Revision: 116140
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116140
Log:
PR c++/28288
PR c++/14556
* operators.def: Remove <?, ?>, <?=, and >?= operators.
* parser.c: Remove CPP_MIN, CPP_MAX, CPP_MIN_EQ, and CPP_MAX_EQ.
(cp_parser_warn_min_max): Remove.
* include/cpplib.h: Remove <?, >?, <?=, and >?= tokens.
(CPP_LAST_EQ): Change.
(CPP_LAST_PUNCTUATOR): Change.
* expr.c (cpp_operator): Remove MIN and MAX.
(reduce): Remove CPP_MIN and CPP_MAX.
(num_binary_op): Ditto.
* lex.c (_cpp_lex_direct): Ditto.
(cpp_avoid_paste): Remove ? as legal symbol after > or <.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/operators.def
trunk/gcc/cp/parser.c
trunk/libcpp/ChangeLog
trunk/libcpp/expr.c
trunk/libcpp/include/cpplib.h
trunk/libcpp/lex.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28288] [4.0/4.1/4.2 regression] ICE with min/max operator
2006-07-06 16:53 [Bug c++/28288] New: [4.0/4.1/4.2 regression] ICE with min/max operator reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-08-14 23:14 ` sje at gcc dot gnu dot org
@ 2006-08-14 23:16 ` sje at gcc dot gnu dot org
2006-08-15 0:52 ` [Bug c++/28288] [4.0/4.1 " pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: sje at gcc dot gnu dot org @ 2006-08-14 23:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from sje at gcc dot gnu dot org 2006-08-14 23:16 -------
Subject: Bug 28288
Author: sje
Date: Mon Aug 14 23:15:57 2006
New Revision: 116141
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116141
Log:
PR c++/28288
PR c++/14556
* g++.old-deja/g++.warn/compare1.C: Delete.
* g++.dg/opt/pr7503-2.C: Delete.
* g++.dg/opt/pr7503-3.C: Delete.
* g++.dg/opt/pr7503-4.C: Delete.
* g++.dg/opt/pr7503-5.C: Delete.
* g++.dg/opt/max1.C: Delete.
* g++.dg/warn/minmax.C: Delete.
* g++.dg/expr/minmax.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/expr/minmax.C
Removed:
trunk/gcc/testsuite/g++.dg/opt/max1.C
trunk/gcc/testsuite/g++.dg/opt/pr7503-2.C
trunk/gcc/testsuite/g++.dg/opt/pr7503-3.C
trunk/gcc/testsuite/g++.dg/opt/pr7503-4.C
trunk/gcc/testsuite/g++.dg/opt/pr7503-5.C
trunk/gcc/testsuite/g++.dg/warn/minmax.C
trunk/gcc/testsuite/g++.old-deja/g++.warn/compare1.C
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28288] [4.0/4.1 regression] ICE with min/max operator
2006-07-06 16:53 [Bug c++/28288] New: [4.0/4.1/4.2 regression] ICE with min/max operator reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-08-14 23:16 ` sje at gcc dot gnu dot org
@ 2006-08-15 0:52 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-15 0:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-08-15 00:52 -------
Closing as won't fix for 4.2.0 as this is a feature which has now been removed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WONTFIX
Summary|[4.0/4.1/4.2 regression] ICE|[4.0/4.1 regression] ICE
|with min/max operator |with min/max operator
Target Milestone|4.0.4 |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28288
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-08-15 0:52 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-06 16:53 [Bug c++/28288] New: [4.0/4.1/4.2 regression] ICE with min/max operator reichelt at gcc dot gnu dot org
2006-07-06 16:53 ` [Bug c++/28288] " reichelt at gcc dot gnu dot org
2006-07-06 16:57 ` pinskia at gcc dot gnu dot org
2006-07-17 3:10 ` mmitchel at gcc dot gnu dot org
2006-08-12 21:44 ` janis at gcc dot gnu dot org
2006-08-14 23:14 ` sje at gcc dot gnu dot org
2006-08-14 23:16 ` sje at gcc dot gnu dot org
2006-08-15 0:52 ` [Bug c++/28288] [4.0/4.1 " 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).