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