[LLVMbugs] [Bug 12049] Unhelpful error message for missing closing parenthesis in constructor initialization list

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 21 20:58:58 PST 2012


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

Eli Friedman <sharparrow1 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |sharparrow1 at yahoo.com
         Resolution|                            |FIXED

--- Comment #2 from Eli Friedman <sharparrow1 at yahoo.com> 2012-02-21 22:58:58 CST ---
With r151130, we now produce:

<stdin>:9:17: error: expected ')'
      int member;
                ^
<stdin>:7:23: note: to match this '('
      Class() : member(function() {}
                      ^

It's hard to get the error messages right in general for member initializers in
inline functions which don't follow the correct grammar, but this case in
particular is easy enough to get right...

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list