public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47476] New: [4.6 Regression] [C++0x] ICE in potential_constant_expression_1
@ 2011-01-26 16:43 jakub at gcc dot gnu.org
2011-01-26 16:43 ` [Bug c++/47476] " jakub at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-01-26 16:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47476
Summary: [4.6 Regression] [C++0x] ICE in
potential_constant_expression_1
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
AssignedTo: jakub@gcc.gnu.org
ReportedBy: jakub@gcc.gnu.org
int
foo (int a, int b)
{
const bool c ((a != 0) == (b != 26));
return c;
}
ICEs with -std=c++0x with:
rh672156.ii:4:38: sorry, unimplemented: unexpected ast of kind truth_xor_expr
rh672156.ii:4:38: internal compiler error: in potential_constant_expression_1,
at cp/semantics.c:7709
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47476] [4.6 Regression] [C++0x] ICE in potential_constant_expression_1
2011-01-26 16:43 [Bug c++/47476] New: [4.6 Regression] [C++0x] ICE in potential_constant_expression_1 jakub at gcc dot gnu.org
@ 2011-01-26 16:43 ` jakub at gcc dot gnu.org
2011-01-26 16:58 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-01-26 16:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47476
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.01.26 16:21:06
Known to work| |4.5.2
Target Milestone|--- |4.6.0
Ever Confirmed|0 |1
Known to fail| |4.6.0
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-26 16:21:06 UTC ---
Works in 4.5.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47476] [4.6 Regression] [C++0x] ICE in potential_constant_expression_1
2011-01-26 16:43 [Bug c++/47476] New: [4.6 Regression] [C++0x] ICE in potential_constant_expression_1 jakub at gcc dot gnu.org
2011-01-26 16:43 ` [Bug c++/47476] " jakub at gcc dot gnu.org
@ 2011-01-26 16:58 ` jakub at gcc dot gnu.org
2011-01-26 21:37 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-01-26 16:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47476
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-26 16:43:21 UTC ---
Created attachment 23134
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23134
gcc46-pr47476.patch
Untested fix.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47476] [4.6 Regression] [C++0x] ICE in potential_constant_expression_1
2011-01-26 16:43 [Bug c++/47476] New: [4.6 Regression] [C++0x] ICE in potential_constant_expression_1 jakub at gcc dot gnu.org
2011-01-26 16:43 ` [Bug c++/47476] " jakub at gcc dot gnu.org
2011-01-26 16:58 ` jakub at gcc dot gnu.org
@ 2011-01-26 21:37 ` jakub at gcc dot gnu.org
2011-01-26 21:48 ` jakub at gcc dot gnu.org
2011-02-02 18:01 ` dnovillo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-01-26 21:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47476
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-26 21:20:43 UTC ---
Author: jakub
Date: Wed Jan 26 21:20:40 2011
New Revision: 169306
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169306
Log:
PR c++/47476
* semantics.c (potential_constant_expression_1): Handle
TRUTH_XOR_EXPR.
* g++.dg/cpp0x/pr47476.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr47476.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47476] [4.6 Regression] [C++0x] ICE in potential_constant_expression_1
2011-01-26 16:43 [Bug c++/47476] New: [4.6 Regression] [C++0x] ICE in potential_constant_expression_1 jakub at gcc dot gnu.org
` (2 preceding siblings ...)
2011-01-26 21:37 ` jakub at gcc dot gnu.org
@ 2011-01-26 21:48 ` jakub at gcc dot gnu.org
2011-02-02 18:01 ` dnovillo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-01-26 21:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47476
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-26 21:22:34 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47476] [4.6 Regression] [C++0x] ICE in potential_constant_expression_1
2011-01-26 16:43 [Bug c++/47476] New: [4.6 Regression] [C++0x] ICE in potential_constant_expression_1 jakub at gcc dot gnu.org
` (3 preceding siblings ...)
2011-01-26 21:48 ` jakub at gcc dot gnu.org
@ 2011-02-02 18:01 ` dnovillo at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: dnovillo at gcc dot gnu.org @ 2011-02-02 18:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47476
--- Comment #5 from Diego Novillo <dnovillo at gcc dot gnu.org> 2011-02-02 17:54:54 UTC ---
Author: dnovillo
Date: Wed Feb 2 17:54:50 2011
New Revision: 169630
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169630
Log:
PR c++/47476
* semantics.c (potential_constant_expression_1): Handle
TRUTH_XOR_EXPR.
* g++.dg/cpp0x/pr47476.C: New test.
Added:
branches/google/integration/gcc/testsuite/g++.dg/cpp0x/pr47476.C
Modified:
branches/google/integration/gcc/cp/ChangeLog
branches/google/integration/gcc/cp/semantics.c
branches/google/integration/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-02-02 18:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26 16:43 [Bug c++/47476] New: [4.6 Regression] [C++0x] ICE in potential_constant_expression_1 jakub at gcc dot gnu.org
2011-01-26 16:43 ` [Bug c++/47476] " jakub at gcc dot gnu.org
2011-01-26 16:58 ` jakub at gcc dot gnu.org
2011-01-26 21:37 ` jakub at gcc dot gnu.org
2011-01-26 21:48 ` jakub at gcc dot gnu.org
2011-02-02 18:01 ` dnovillo at gcc dot gnu.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).