http://llvm.org/bugs/show_bug.cgi?id=7258
Summary: Bogus throw specification error
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
~> clang++ --version
clang version 2.0 (trunk 105014)
Target: x86_64-apple-darwin10
Thread model: posix
~> cat throw_specs_ok.cpp
struct A
{
virtual ~A() throw() { }
};
struct B : A
{};
~> clang++ -c throw_specs_ok.cpp && echo "fine"
fine
~> cat throw_specs_fail.cpp
template <typename T>
struct A
{
virtual ~A() throw() { }
};
struct B : A<double>
{};
~> clang++ -c throw_specs_fail.cpp
throw_specs.cpp:7:8: error: exception specification of overriding function is
more lax than base version
struct B : A<double>
^
throw_specs.cpp:4:11: note: overridden virtual function is here
virtual ~A() throw() { }
^
1 error generated.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs