#51469: gcc6 @6.1.0_0 Internal compiler error: in fold_binary_loc ------------------------+-------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: gcc6 ------------------------+-------------------------------- 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. -- Ticket URL: <https://trac.macports.org/ticket/51469> MacPorts <https://www.macports.org/> Ports system for OS X