public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48909] New: [C++0x]internal compiler error: in cxx_eval_conditional_expression, at cp/semantics.c:6213
@ 2011-05-06 5:32 sscrisk at gmail dot com
2011-05-06 9:49 ` [Bug c++/48909] [C++0x] ICE " paolo.carlini at oracle dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: sscrisk at gmail dot com @ 2011-05-06 5:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48909
Summary: [C++0x]internal compiler error: in
cxx_eval_conditional_expression, at
cp/semantics.c:6213
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: sscrisk@gmail.com
Souce:
constexpr int const * is_sorted_until(int const * first, int const * last)
{
return first == last || first + 1 == last ? last
: (*(first + 1) < *first) != false ? first + 1
: is_sorted_until(first + 1, last);
}
int main()
{
static constexpr int array[2] = {0, 1};
constexpr int const * last = is_sorted_until(array, array + 2);
}
Compile errors:
a.cpp: In function 'int main()':
a.cpp:11:56: in constexpr expansion of 'is_sorted_until(((const int*)(& b)),
(((const int*)(& b)) + 8u))'
a.cpp:11:56: internal compiler error: in cxx_eval_conditional_expression, at
cp/semantics.c:6213
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48909] [C++0x] ICE in cxx_eval_conditional_expression, at cp/semantics.c:6213
2011-05-06 5:32 [Bug c++/48909] New: [C++0x]internal compiler error: in cxx_eval_conditional_expression, at cp/semantics.c:6213 sscrisk at gmail dot com
@ 2011-05-06 9:49 ` paolo.carlini at oracle dot com
2011-05-06 15:01 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-05-06 9:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48909
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.05.06 09:26:05
CC| |jason at gcc dot gnu.org
Summary|[C++0x]internal compiler |[C++0x] ICE in
|error: in |cxx_eval_conditional_expres
|cxx_eval_conditional_expres |sion, at
|sion, at |cp/semantics.c:6213
|cp/semantics.c:6213 |
Ever Confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-06 09:26:05 UTC ---
Confirmed mainline and 4_6-branch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48909] [C++0x] ICE in cxx_eval_conditional_expression, at cp/semantics.c:6213
2011-05-06 5:32 [Bug c++/48909] New: [C++0x]internal compiler error: in cxx_eval_conditional_expression, at cp/semantics.c:6213 sscrisk at gmail dot com
2011-05-06 9:49 ` [Bug c++/48909] [C++0x] ICE " paolo.carlini at oracle dot com
@ 2011-05-06 15:01 ` jason at gcc dot gnu.org
2011-05-06 22:01 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-06 15:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48909
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48909] [C++0x] ICE in cxx_eval_conditional_expression, at cp/semantics.c:6213
2011-05-06 5:32 [Bug c++/48909] New: [C++0x]internal compiler error: in cxx_eval_conditional_expression, at cp/semantics.c:6213 sscrisk at gmail dot com
2011-05-06 9:49 ` [Bug c++/48909] [C++0x] ICE " paolo.carlini at oracle dot com
2011-05-06 15:01 ` jason at gcc dot gnu.org
@ 2011-05-06 22:01 ` jason at gcc dot gnu.org
2011-05-06 22:02 ` jason at gcc dot gnu.org
2011-05-06 22:04 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-06 22:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48909
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-06 21:57:52 UTC ---
Author: jason
Date: Fri May 6 21:57:49 2011
New Revision: 173511
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173511
Log:
PR c++/48909
* semantics.c (cxx_eval_conditional_expression): Check
integer_zerop/onep instead.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-condition2.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++/48909] [C++0x] ICE in cxx_eval_conditional_expression, at cp/semantics.c:6213
2011-05-06 5:32 [Bug c++/48909] New: [C++0x]internal compiler error: in cxx_eval_conditional_expression, at cp/semantics.c:6213 sscrisk at gmail dot com
` (2 preceding siblings ...)
2011-05-06 22:01 ` jason at gcc dot gnu.org
@ 2011-05-06 22:02 ` jason at gcc dot gnu.org
2011-05-06 22:04 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-06 22:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48909
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-06 21:58:47 UTC ---
Author: jason
Date: Fri May 6 21:58:44 2011
New Revision: 173516
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173516
Log:
PR c++/48909
* semantics.c (cxx_eval_conditional_expression): Check
integer_zerop/onep instead.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-condition2.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++/48909] [C++0x] ICE in cxx_eval_conditional_expression, at cp/semantics.c:6213
2011-05-06 5:32 [Bug c++/48909] New: [C++0x]internal compiler error: in cxx_eval_conditional_expression, at cp/semantics.c:6213 sscrisk at gmail dot com
` (3 preceding siblings ...)
2011-05-06 22:02 ` jason at gcc dot gnu.org
@ 2011-05-06 22:04 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-06 22:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48909
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.1
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-06 22:00:58 UTC ---
Fixed for 4.6.1.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-05-06 22:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-06 5:32 [Bug c++/48909] New: [C++0x]internal compiler error: in cxx_eval_conditional_expression, at cp/semantics.c:6213 sscrisk at gmail dot com
2011-05-06 9:49 ` [Bug c++/48909] [C++0x] ICE " paolo.carlini at oracle dot com
2011-05-06 15:01 ` jason at gcc dot gnu.org
2011-05-06 22:01 ` jason at gcc dot gnu.org
2011-05-06 22:02 ` jason at gcc dot gnu.org
2011-05-06 22:04 ` 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).