https://bugs.llvm.org/show_bug.cgi?id=46439
Bug ID: 46439
Summary: Duplicated error message "expected a qualified name
after 'typename'"
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangb...@nondot.org
Reporter: haoxi...@gmail.com
CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
richard-l...@metafoo.co.uk
This code, bug.cc, clang emits two duplicated error messages
$cat bug.cc
void
foo1
(typename )
{}
typedef int A;
void
foo2
(typename ::A)
{}
$clang++-trunk -c bug.cc
bug.cc:3:11: error: expected a qualified name after 'typename'
(typename )
^
bug.cc:3:11: error: expected a qualified name after 'typename'
2 errors generated.
The function foo2() is compiled well, but foo1() emits the duplicated messages,
so I guess clang might have something wrong with diagnostic information in this
case.
I have tested it in almost all clang versions, and they all have this issue.
--
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