[llvm-bugs] [Bug 38382] New: Buggy note

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 31 02:41:55 PDT 2018


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: unassignedclangbugs at nondot.org
          Reporter: abramo.bagnara at bugseng.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180731/095925e0/attachment.html>


More information about the llvm-bugs mailing list