[LLVMbugs] [Bug 22251] New: low quality error for unknown type name that could plausibly also be a forward declaration

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 16 14:28:11 PST 2015


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

            Bug ID: 22251
           Summary: low quality error for unknown type name that could
                    plausibly also be a forward declaration
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Testcase:

void f() {
  struct timespec ts;
}

$ clang y.c
y.c:2:19: error: variable has incomplete type 'struct timespec'
  struct timespec ts;
                  ^
y.c:2:10: note: forward declaration of 'struct timespec'
  struct timespec ts;
         ^
1 error generated.


We should at least suppress the note if not change the error text.

-- 
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/20150116/cce63c88/attachment.html>


More information about the llvm-bugs mailing list