public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/63936] New: ICE: libstdc++-v3/include/chrono:725:66: internal compiler error: in adjust_temp_type, at cp/constexpr.c:1020
@ 2014-11-18 15:21 ktkachov at gcc dot gnu.org
  2014-11-18 15:30 ` [Bug c++/63936] [5.0 regression] " ramana at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2014-11-18 15:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63936

            Bug ID: 63936
           Summary: ICE: libstdc++-v3/include/chrono:725:66: internal
                    compiler error: in adjust_temp_type, at
                    cp/constexpr.c:1020
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ktkachov at gcc dot gnu.org
                CC: jason at redhat dot com
            Target: arm-none-eabi

Starting with r217664:
Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Mon Nov 17 18:16:19 2014 +0000

        * constexpr.c (use_new_call): Always use new call handling.


I see an ICE when building libstdc++ for arm-none-eabi:
$BLD/obj/gcc2/arm-none-eabi/libstdc++-v3/include/chrono:723:49:   in constexpr
expansion of 'std::chrono::duration<_Rep, _Period>::min<long long int,
std::ratio<1ll, 1000000000ll> >()'
$BLD/obj/gcc2/arm-none-eabi/libstdc++-v3/include/chrono:725:66:   in constexpr
expansion of 'std::chrono::duration<long long int, std::ratio<1ll,
1000000000ll> >((* & std::chrono::duration_values<_Rep>::min<long long
int>()))'
$BLD/obj/gcc2/arm-none-eabi/libstdc++-v3/include/chrono:725:66: internal
compiler error: in adjust_temp_type, at cp/constexpr.c:1020
       "a clock's minimum duration cannot be less than its epoch");
                                                                  ^
0x75e827 adjust_temp_type
        $SRC/gcc/cp/constexpr.c:1020
0x7650be cxx_eval_call_expression
        $SRC/gcc/cp/constexpr.c:1377
0x7650be cxx_eval_constant_expression
        $SRC/gcc/cp/constexpr.c:2835
0x765602 cxx_eval_constant_expression
        $SRC/gcc/cp/constexpr.c:2895
0x76a6bb cxx_eval_store_expression
        $SRC/gcc/cp/constexpr.c:2529
0x765668 cxx_eval_constant_expression
        $SRC/gcc/cp/constexpr.c:2914
0x7656fe cxx_eval_constant_expression
        $SRC/gcc/cp/constexpr.c:2926
0x76575d cxx_eval_constant_expression
        $SRC/gcc/cp/constexpr.c:2940
0x764dd1 cxx_eval_call_expression
        $SRC/gcc/cp/constexpr.c:1329
0x764dd1 cxx_eval_constant_expression
        $SRC/gcc/cp/constexpr.c:2835
0x765602 cxx_eval_constant_expression
        $SRC/gcc/cp/constexpr.c:2895
0x7657d2 cxx_eval_constant_expression
        $SRC/gcc/cp/constexpr.c:2958
0x765e93 cxx_eval_constant_expression
        $SRC/gcc/cp/constexpr.c:3147
0x765e93 cxx_eval_constant_expression
        $SRC/gcc/cp/constexpr.c:3147
0x769dc5 cxx_bind_parameters_in_call
        $SRC/gcc/cp/constexpr.c:1072
0x7644f5 cxx_eval_call_expression
        $SRC/gcc/cp/constexpr.c:1235
0x7644f5 cxx_eval_constant_expression
        $SRC/gcc/cp/constexpr.c:2835
0x7667e3 cxx_eval_outermost_constant_expr
        $SRC/gcc/cp/constexpr.c:3314
0x769126 maybe_constant_value(tree_node*, tree_node*)
        $SRC/gcc/cp/constexpr.c:3427
0x6e6833 finish_static_assert(tree_node*, tree_node*, unsigned int, bool)
        $SRC/gcc/cp/semantics.c:7046
Please submit a full bug report,
with preprocessed source if appropriate.


This prevents the building of the arm-none-eabi toolchain, so it's quite
important


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/63936] [5.0 regression] ICE: libstdc++-v3/include/chrono:725:66: internal compiler error: in adjust_temp_type, at cp/constexpr.c:1020
  2014-11-18 15:21 [Bug c++/63936] New: ICE: libstdc++-v3/include/chrono:725:66: internal compiler error: in adjust_temp_type, at cp/constexpr.c:1020 ktkachov at gcc dot gnu.org
@ 2014-11-18 15:30 ` ramana at gcc dot gnu.org
  2014-11-18 15:34 ` ktkachov at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ramana at gcc dot gnu.org @ 2014-11-18 15:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63936

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-11-18
                 CC|                            |ramana at gcc dot gnu.org
            Summary|ICE:                        |[5.0 regression] ICE:
                   |libstdc++-v3/include/chrono |libstdc++-v3/include/chrono
                   |:725:66: internal compiler  |:725:66: internal compiler
                   |error: in adjust_temp_type, |error: in adjust_temp_type,
                   |at cp/constexpr.c:1020      |at cp/constexpr.c:1020
     Ever confirmed|0                           |1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/63936] [5.0 regression] ICE: libstdc++-v3/include/chrono:725:66: internal compiler error: in adjust_temp_type, at cp/constexpr.c:1020
  2014-11-18 15:21 [Bug c++/63936] New: ICE: libstdc++-v3/include/chrono:725:66: internal compiler error: in adjust_temp_type, at cp/constexpr.c:1020 ktkachov at gcc dot gnu.org
  2014-11-18 15:30 ` [Bug c++/63936] [5.0 regression] " ramana at gcc dot gnu.org
@ 2014-11-18 15:34 ` ktkachov at gcc dot gnu.org
  2014-11-18 16:00 ` ktkachov at gcc dot gnu.org
  2014-11-18 17:13 ` ktkachov at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2014-11-18 15:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63936

--- Comment #1 from ktkachov at gcc dot gnu.org ---
Hmmm... aarch64-none-elf builds succesfully


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/63936] [5.0 regression] ICE: libstdc++-v3/include/chrono:725:66: internal compiler error: in adjust_temp_type, at cp/constexpr.c:1020
  2014-11-18 15:21 [Bug c++/63936] New: ICE: libstdc++-v3/include/chrono:725:66: internal compiler error: in adjust_temp_type, at cp/constexpr.c:1020 ktkachov at gcc dot gnu.org
  2014-11-18 15:30 ` [Bug c++/63936] [5.0 regression] " ramana at gcc dot gnu.org
  2014-11-18 15:34 ` ktkachov at gcc dot gnu.org
@ 2014-11-18 16:00 ` ktkachov at gcc dot gnu.org
  2014-11-18 17:13 ` ktkachov at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2014-11-18 16:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63936

--- Comment #2 from ktkachov at gcc dot gnu.org ---
Created attachment 34026
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34026&action=edit
tarball of preprocessed file that ICEs

I'm attaching the preprocessed file that ICEs.
It just needs a -std=gnu++0x when compiling with an arm cross compiler, any
optimisation level (the ICE is in the parser)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/63936] [5.0 regression] ICE: libstdc++-v3/include/chrono:725:66: internal compiler error: in adjust_temp_type, at cp/constexpr.c:1020
  2014-11-18 15:21 [Bug c++/63936] New: ICE: libstdc++-v3/include/chrono:725:66: internal compiler error: in adjust_temp_type, at cp/constexpr.c:1020 ktkachov at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-11-18 16:00 ` ktkachov at gcc dot gnu.org
@ 2014-11-18 17:13 ` ktkachov at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2014-11-18 17:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63936

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from ktkachov at gcc dot gnu.org ---
Turns out it's a dup

*** This bug has been marked as a duplicate of bug 63934 ***


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-18 17:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-18 15:21 [Bug c++/63936] New: ICE: libstdc++-v3/include/chrono:725:66: internal compiler error: in adjust_temp_type, at cp/constexpr.c:1020 ktkachov at gcc dot gnu.org
2014-11-18 15:30 ` [Bug c++/63936] [5.0 regression] " ramana at gcc dot gnu.org
2014-11-18 15:34 ` ktkachov at gcc dot gnu.org
2014-11-18 16:00 ` ktkachov at gcc dot gnu.org
2014-11-18 17:13 ` ktkachov 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).