[LLVMbugs] [Bug 12292] New: template friend class is not inserted in the AST
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Mar 17 03:31:39 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12292
Bug #: 12292
Summary: template friend class is not inserted in the AST
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: abramobagnara at tin.it
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
As the typescript below shows, the friend template class declaration is not
added to the AST.
$ cat p.cc
template <typename T>
class Outer1 {
template <typename V>
template <typename W>
friend class Outer1<V>::Inner;
};
$ ~/llvm_trunk/Debug+Asserts/bin/clang -cc1 -ast-dump p.cc
typedef __int128_t __int128_t;
typedef __uint128_t __uint128_t;
struct __va_list_tag {
struct __va_list_tag;
unsigned int gp_offset;
unsigned int fp_offset;
void *overflow_arg_area;
void *reg_save_area;
};
typedef struct __va_list_tag __va_list_tag;
typedef __va_list_tag __builtin_va_list[1];
template <typename T> class Outer1 {
class Outer1;
};
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list