This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/36872] __has_nothrow_copy(T) false for T with a throwing vararg ctor



------- Comment #1 from sebor at roguewave dot com  2008-07-19 00:53 -------
Or any other throwing ctor, for that matter:

$ cat u.cpp && g++ u.cpp -std=c++0x && ./a.out 
#include <cassert>

struct S {
    S (const S&) throw ();
    S (int) throw (int);
};


int main ()
{
    assert (__has_nothrow_copy (S));
}

a.out: u.cpp:11: int main(): Assertion `__has_nothrow_copy (S)' failed.
Aborted


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36872


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]