https://bugs.llvm.org/show_bug.cgi?id=41555

            Bug ID: 41555
           Summary: Problem of parse typedef with template partial
                    specialization.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Tooling
          Assignee: unassignedclangb...@nondot.org
          Reporter: burnss...@gmail.com
                CC: llvm-bugs@lists.llvm.org

I use clang libTooling version 9.0 (latest release).

I have example of code with template with template partial specialization. And
where clang while parsing ,return result invalid declaration.

Example of code:

template < class T> class TYPE_A
{
};

template < class T, class U> class TYPE_B
{
};

template < class T, class U = TYPE_A<T> > class TYPE_B;

typedef TYPE_B<double> B_Test;


And when I parse this construction, I received invalid declaration for B_Test
type.

I have example of dump:
TypedefDecl 0x2024d557af0
<D:\Projects\Reps\NET_Desktop\Rel\Kernel\include\OdArrayPreDef.h:60:1, col:27>
col:27 invalid B_Test 'int'
`-BuiltinType 0x2024caff080 'int'

Please, help me for resolving this problem.

Thank you.

Best Regards,
Ivan.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to