[llvm-bugs] [Bug 41555] New: Problem of parse typedef with template partial specialization.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 22 00:41:30 PDT 2019


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: unassignedclangbugs at nondot.org
          Reporter: burnss887 at gmail.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190422/5d5d023d/attachment-0001.html>


More information about the llvm-bugs mailing list