https://bugs.llvm.org/show_bug.cgi?id=46289

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Richard Smith <[email protected]> ---
We diagnosed that the declaration on line 2 is invalid. It's not reasonable to
expect a compiler to list every way in which a given declaration is invalid if
there is more than one (that leads to a bad user experience), nor that all
compilers will diagnose invalid code in the same way.

I expect what's happening here is that the source code is being rejected by the
parser, so we don't get as far as performing semantic checks and determining
that we have a template inside an extern "C" block.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to