This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78623] non-dependent name treated as if it were dependent, requiring use of template keyword


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]