hcc icon indicating copy to clipboard operation
hcc copied to clipboard

Keywords needed to help parser.

Open Jorghi12 opened this issue 7 years ago • 1 comments

I generally need to add the keyword "template" around various pieces of code.

RegisterUtils<T, Width>::shiftLeft<Stride>(in); ---> RegisterUtils<T, Width>::template shiftLeft<Stride>(in);

In this scenario, if I don't add that keyword, then I receive the error "error: reference to overloaded function could not be resolved; did you mean to call it?"

I usually run into similar issues when using the HCC compiler, but not with standard Clang or GCC. Curious as to why?

Jorghi12 avatar May 10 '18 16:05 Jorghi12

Can you give a small source that gives the error with HCC and not standard Clang/GCC ? Are you seeing this with only ::template, or are there any other keywords ?

david-salinas avatar Sep 21 '18 19:09 david-salinas