https://bugs.llvm.org/show_bug.cgi?id=38382

            Bug ID: 38382
           Summary: Buggy note
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: abramo.bagn...@bugseng.com
                CC: llvm-bugs@lists.llvm.org

$ cat a.c
extern double printf;
$ clang-7 -c a.c
a.c:1:15: error: redefinition of 'printf' as different kind of symbol
extern double printf;
              ^
a.c:1:15: note: unguarded header; consider using #ifdef guards or #pragma once
a.c:1:15: note: previous definition is here
1 error generated.

The first note is completely wrong (also the second is weird, but it seems a
less severe problem).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to