public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50508] New: [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 4.61/4.7 converting std::intergal_constant to bool with &&
@ 2011-09-24 16:20 fuchsia.groan at virgin dot net
2011-09-24 16:34 ` [Bug c++/50508] " redi at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: fuchsia.groan at virgin dot net @ 2011-09-24 16:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50508
Bug #: 50508
Summary: [C++0x] ICE cxx_eval_logical_expression
cp/semantics.c:6487 4.61/4.7 converting
std::intergal_constant to bool with &&
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: fuchsia.groan@virgin.net
/* This ICEd the official mingw 4.6.1 with: 'internal compiler error: in
cxx_eval_logical_expression at cp/semantics.c:6487'
(I had the same result on gcc 4.7.0 20110813 from www.equation.com)
*/
#include <type_traits>
static constexpr bool value = std::integral_constant<bool,true>()
&& std::integral_constant<bool,true>();
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/50508] [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 4.61/4.7 converting std::intergal_constant to bool with &&
2011-09-24 16:20 [Bug c++/50508] New: [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 4.61/4.7 converting std::intergal_constant to bool with && fuchsia.groan at virgin dot net
@ 2011-09-24 16:34 ` redi at gcc dot gnu.org
2011-09-24 16:42 ` redi at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2011-09-24 16:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50508
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-09-24
CC| |jason at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-24 16:20:07 UTC ---
fails the gcc_assert in cxx_eval_logical_expression
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/50508] [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 4.61/4.7 converting std::intergal_constant to bool with &&
2011-09-24 16:20 [Bug c++/50508] New: [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 4.61/4.7 converting std::intergal_constant to bool with && fuchsia.groan at virgin dot net
2011-09-24 16:34 ` [Bug c++/50508] " redi at gcc dot gnu.org
@ 2011-09-24 16:42 ` redi at gcc dot gnu.org
2011-09-27 2:15 ` [Bug c++/50508] [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 jason at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2011-09-24 16:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50508
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-24 16:23:30 UTC ---
reduced
template <class T>
struct integral_constant {
typedef T value_type;
constexpr operator value_type() { return true; }
};
static constexpr bool value = integral_constant<bool>()
&& true;
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/50508] [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487
2011-09-24 16:20 [Bug c++/50508] New: [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 4.61/4.7 converting std::intergal_constant to bool with && fuchsia.groan at virgin dot net
2011-09-24 16:34 ` [Bug c++/50508] " redi at gcc dot gnu.org
2011-09-24 16:42 ` redi at gcc dot gnu.org
@ 2011-09-27 2:15 ` jason at gcc dot gnu.org
2011-09-27 2:23 ` jason at gcc dot gnu.org
2011-09-27 2:41 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-09-27 2:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50508
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-09-27 02:12:46 UTC ---
Author: jason
Date: Tue Sep 27 02:12:42 2011
New Revision: 179228
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179228
Log:
PR c++/50508
* semantics.c (cxx_eval_logical_expression): Use tree_int_cst_equal
rather than ==.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-typedef1.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++/50508] [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487
2011-09-24 16:20 [Bug c++/50508] New: [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 4.61/4.7 converting std::intergal_constant to bool with && fuchsia.groan at virgin dot net
` (2 preceding siblings ...)
2011-09-27 2:15 ` [Bug c++/50508] [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 jason at gcc dot gnu.org
@ 2011-09-27 2:23 ` jason at gcc dot gnu.org
2011-09-27 2:41 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-09-27 2:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50508
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-09-27 02:19:00 UTC ---
Author: jason
Date: Tue Sep 27 02:18:56 2011
New Revision: 179231
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179231
Log:
PR c++/50508
* semantics.c (cxx_eval_logical_expression): Use tree_int_cst_equal
rather than ==.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-typedef1.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/50508] [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487
2011-09-24 16:20 [Bug c++/50508] New: [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 4.61/4.7 converting std::intergal_constant to bool with && fuchsia.groan at virgin dot net
` (3 preceding siblings ...)
2011-09-27 2:23 ` jason at gcc dot gnu.org
@ 2011-09-27 2:41 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-09-27 2:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50508
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.2
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-09-27 02:23:13 UTC ---
Fixed for 4.6.2.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-09-27 2:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-24 16:20 [Bug c++/50508] New: [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 4.61/4.7 converting std::intergal_constant to bool with && fuchsia.groan at virgin dot net
2011-09-24 16:34 ` [Bug c++/50508] " redi at gcc dot gnu.org
2011-09-24 16:42 ` redi at gcc dot gnu.org
2011-09-27 2:15 ` [Bug c++/50508] [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 jason at gcc dot gnu.org
2011-09-27 2:23 ` jason at gcc dot gnu.org
2011-09-27 2:41 ` jason 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).