[LLVMbugs] [Bug 16992] New: Fixit missing when "sizeof type" found

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 25 00:41:03 PDT 2013


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

            Bug ID: 16992
           Summary: Fixit missing when "sizeof type" found
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Consider:
int x = sizeof int;

This is wrong given the C++ grammar:
unary-expression:
  sizeof unary-expression
  sizeof ( type-id )
  sizeof ... ( identiļ¬er )

we should give a fixit suggesting parenthesis around int.  There are
(non-conformant) compilers that don't require the parenthesis, this fixit would
probably be useful to them.

-- 
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/20130825/536201ad/attachment.html>


More information about the llvm-bugs mailing list