https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71267
Bug ID: 71267 Summary: recursive metafunction won't compile: no type named 'type' Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: freezer at posteo dot de Target Milestone: --- Created attachment 38557 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38557&action=edit Code that causes the bug I have a metafunction that calls itself recursively. gcc doesn't compile the code, while clang (versions >= 3.2) works fine. I'm getting the following error: error: no type named 'type' in 'struct make_integer_list_impl<...>' (even though 'type' exists) g++ (GCC) 7.0.0 20160524 (experimental) http://melpon.org/wandbox/permlink/uylC2Kzc9Fj1u7jw Code is in the attachment.