[LLVMbugs] [Bug 17349] New: -Wmissing-variable-declarations false positive for static vars in a member function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 24 15:21:04 PDT 2013


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

            Bug ID: 17349
           Summary: -Wmissing-variable-declarations false positive for
                    static vars in a member function
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: b.r.longbons at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

// Tested with 1:3.4~svn190846-1 from Debian.

#pragma clang diagnostic error "-Wmissing-variable-declarations"

class C
{
    void test()
    {
        static int x = 0;
    }
};

-- 
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/20130924/180f6ffa/attachment.html>


More information about the llvm-bugs mailing list