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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to