[LLVMbugs] [Bug 2013] New: Missing source line in diagnostic

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Feb 11 02:00:07 PST 2008


           Summary: Missing source line in diagnostic
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: NetBSD
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: neil at daikokuya.co.uk
                CC: llvmbugs at cs.uiuc.edu

Playing with clang after the conversation of cfe-dev I tried:

struct S {
  int a;
  int foo();

struct S s; 

void bar (void) { s.foo = &s; }

$ ~/src/nobackup/llvm/Debug/bin/clang -pedantic-errors /tmp/bug.c 
/tmp/bug.c:3:7: error: field 'foo' declared as a function
  int foo();
/tmp/bug.c:8:25: error: non-object type 'int ()' is not assignable
2 diagnostics generated.

The original source line is not displayed for the 2nd error.  It would be nice
if the error were suppressed entirely, but that's a minor and debatable point.

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