[LLVMbugs] [Bug 11910] Storage-class extern inside function body on tentatively static symbols breaks later definitions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 21 03:08:14 PDT 2013


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

Anton Korobeynikov <asl at math.spbu.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |asl at math.spbu.ru
         Resolution|---                         |FIXED

--- Comment #2 from Anton Korobeynikov <asl at math.spbu.ru> ---
ToT correctly handles it.

First testcase compiles w/o error for me. Second yields:

$ clang 1.c
1.c:6:5: error: non-static declaration of 'var' follows static declaration
int var = 0;
    ^
1.c:1:12: note: previous definition is here
static int var;
           ^
1 error generated.


Please reopen is something is still broken

-- 
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/20130421/0da5e929/attachment.html>


More information about the llvm-bugs mailing list