This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78623] non-dependent name treated as if it were dependent, requiring use of template keyword
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Dec 2016 08:24:03 +0000
- Subject: [Bug c++/78623] non-dependent name treated as if it were dependent, requiring use of template keyword
- Auto-submitted: auto-generated
- References: <bug-78623-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78623
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
clang agrees with GCC:
> clang++ t.C -S -std=c++11
t.C:15:20: error: use 'template' keyword to treat 'foo' as a dependent template
name
result.foo<void>(); // (*)
^
template
1 error generated.