[LLVMbugs] [Bug 7258] New: Bogus throw specification error
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun May 30 03:09:18 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: luc_j_bourhis at mac.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
~> 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.
More information about the llvm-bugs
mailing list