This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71267] New: recursive metafunction won't compile: no type named 'type'
- From: "freezer at posteo dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 May 2016 01:15:30 +0000
- Subject: [Bug c++/71267] New: recursive metafunction won't compile: no type named 'type'
- Auto-submitted: auto-generated
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.