[llvm-bugs] [Bug 47520] New: clang reports an error: no member a class defination
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 14 05:38:44 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47520
Bug ID: 47520
Summary: clang reports an error: no member a class defination
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: tangyixuan at mail.dlut.edu.cn
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Hi, the following code is rejected by clang, while is accepted by gcc.
$ cat s.cpp
template < class T1 > class C1{
class C2{ class C3;};
};
template < class T1 > class C1< T1 >:: C2:: C3{
public : int a ;
public : void f (){
C1< T1 >:: E ();
};
};
$ g++ -c s.cpp
success.
$ clang++ -c s.cpp
s.cpp:7:16: error: no member named 'E' in 'C1<T1>'
C1< T1 >:: E ();
~~~~~~~~~~ ^
1 error generated.
--
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/20200914/3f3377f7/attachment.html>
More information about the llvm-bugs
mailing list