[LLVMbugs] [Bug 19486] New: Initialising member in class definition works differently for incomplete type.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 18 19:02:05 PDT 2014


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

            Bug ID: 19486
           Summary: Initialising member in class definition works
                    differently for incomplete type.
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: littlekid87 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Initialising member in class definition for incomplete type works differently.

// header
include <vector>

class test final
{
public:
    test();

private:
    class module;

    std::vector<module> _var1{}; // Fail
    std::vector<module> _var2;   // Ok
}

// CPP
class test::module final
{
};

test::test()
{
    //Do something
}

-- 
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/20140419/132f91d4/attachment.html>


More information about the llvm-bugs mailing list