[Bug c++/82308] [C++17] deduction of template arguments results in internal compiler error

sdalleig at mmci dot uni-saarland.de gcc-bugzilla@gcc.gnu.org
Mon Sep 25 10:27:00 GMT 2017


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

--- Comment #2 from sdalleig at mmci dot uni-saarland.de ---
I think that the error-message you get is correct if you are using C++14. The
new standard allows for template argument deduction based on constructors and
guides. 

The problem occurred in C++17 mode (-std=c++17 or -std=c++1z) using 7.2. It
happened to be the case that clang-5 has handled this code properly. 

On a different machine, gcc reported a parse-tree error instead of the
``internal compiler error''.


More information about the Gcc-bugs mailing list