Opened 8 years ago

Closed 8 years ago

#51469 closed defect (invalid)

gcc6 @6.1.0_0 Internal compiler error: in fold_binary_loc

Reported by: macports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: gcc6

Description

Attempting to compile the attached file, using a C++14 constexpr function, with g++-mp-6 results in

consterr.cpp: In function 'int main()':
consterr.cpp:29:34:   in constexpr expansion of 'operator*<int, 3, 2>(x2p1, xm1)'
consterr.cpp:29:34: internal compiler error: in fold_binary_loc, at fold-const.c:9252
     constexpr auto prod = x2p1 * xm1;
                                  ^~~

consterr.cpp:29:34: internal compiler error: Abort trap: 6
g++-mp-6: internal compiler error: Abort trap: 6 (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://trac.macports.org/newticket> for instructions.

It compiles succesfully with clang++ (Apple LLVM version 7.3.0 (clang-703.0.31)). I am on OS X El Capitan, 10.11.4, with Xcode 7.3.1 installed.

Attachments (1)

consterr.cpp (790 bytes) - added by macports@… 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by macports@…

Attachment: consterr.cpp added

comment:1 Changed 8 years ago by macports@…

P.S. I'd be happy to report this to GCC instead, which seems indicated. I was just following the directions to report it here first ;-)

comment:2 Changed 8 years ago by macports@…

I have verified that this occurs on other platforms, so I reported it at GCC (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71226). This can be closed.

comment:3 Changed 8 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

In the future, please Cc the port maintainers (port info --maintainers gcc6), if any.

Note: See TracTickets for help on using tickets.