[LLVMbugs] [Bug 11399] diagnostic for referring to nested class before that type is complete refers to wrong type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jun 29 21:26:12 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=11399

Seth <seth.cantrell at gmail.com> changed:

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

--- Comment #2 from Seth <seth.cantrell at gmail.com> ---
I don't know when this was fixed but it is as of
e103979ceac63c98873f3307ee897eab559356a0, or r185264

clang's output is now:

---

main.cpp:2:6: error: unknown type name 'Bar'
        Foo(Bar const &);
            ^
main.cpp:2:10: error: expected ')'
        Foo(Bar const &);
                ^
main.cpp:2:5: note: to match this '('
        Foo(Bar const &);
           ^
2 errors generated.
---

Although I notice that without the const the extraneous "error: expected ')'"
also disappears:

---
main.cpp:2:6: error: unknown type name 'Bar'
        Foo(Bar &);
            ^
1 error generated.

-- 
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/20130630/50ee3436/attachment.html>


More information about the llvm-bugs mailing list