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

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).