[llvm-bugs] [Bug 46339] Weird error messages in different versions of clang or in a newline

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 16 08:36:21 PDT 2020


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

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

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
This is working as intended. After the first error in Clang <= 10, we gave up,
whereas in trunk we're able to recover and keep parsing, which is why more
errors are now reported for the later invalid code after the first error.

We intentionally use newlines as a clue to improve our diagnostics in the case
where a semicolon is missing.

So I think this is all working as intended.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200616/028d8ed1/attachment.html>


More information about the llvm-bugs mailing list