[LLVMbugs] [Bug 15755] New: Failed to inherit variadic template constructor from base's base.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 15 19:26:24 PDT 2013


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

            Bug ID: 15755
           Summary: Failed to inherit variadic template constructor from
                    base's base.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eric at boostpro.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following code fails to compile:

{{{
    struct S
    {
        template<class A, class...B>
        S(A, B...) {}
    };

    struct T : S
    {
        using S::S;
    };

    struct U : T
    {
        using T::T;
    };

    int main()
    {
        U u{"hello"};
    }
}}}

Clang trunk gives:

1>  "C:/cygwin/usr/local/bin/clang++.exe" -c -O0 -std=gnu++11 -I../../../..
-I/home/Eric/boost/org/trunk main.cpp -o main.o
1>  main.cpp:19:7: error: call to deleted constructor of 'U'
1>      U u{"hello"};
1>        ^~~~~~~~~~
1>  main.cpp:14:14: note: function has been explicitly marked deleted here
1>      using T::T;
1>               ^
1>  1 error generated.
1>  make: *** [main.o] Error 1

The code should compile.

-- 
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/20130416/27b247cb/attachment.html>


More information about the llvm-bugs mailing list