[Bug c++/58859] throwing exceptions in destructors causes std::terminate called unnecessarily.

2013-10-23 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58859 --- Comment #4 from meng at g dot clemson.edu --- ok, I think I missed 15.4/4 and 12.4/3, which means the dtor in my example should allow no exceptions, i.e., noexcept(true). Thanks again.

[Bug c++/58859] throwing exceptions in destructors causes std::terminate called unnecessarily.

2013-10-23 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58859 --- Comment #3 from meng at g dot clemson.edu --- (In reply to Marc Glisse from comment #2) > Try adding noexcept(false) on the destructor? that works. Thanks. but this causes another question. c++11 15.4/12 states "A function with no e

[Bug c++/58859] throwing exceptions in destructors causes std::terminate called unnecessarily.

2013-10-23 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58859 --- Comment #1 from meng at g dot clemson.edu --- made a typo just now. "and g++-4.8.0 with c++11 flag, " should read "and g++-4.8.0 without c++11 flag, " i.e., the problem only happens when c++11 is enabled with g++-4.8.0.

[Bug c++/58859] New: throwing exceptions in destructors causes std::terminate called too early.

2013-10-23 Thread meng at g dot clemson.edu
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: meng at g dot clemson.edu the following program does not execute (2) for g++-4.8.[01] -std=c++11 and I think this is a bug. I tested the program on g++-4.[67].[01] with or without

[Bug c++/56772] placement new operator does not work inside function template for array types.

2013-03-28 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56772 --- Comment #2 from meng at g dot clemson.edu 2013-03-29 00:45:23 UTC --- (In reply to comment #1) > I see a sorry message thus the issue seems known. I agree. What confused me was that the feature is not unimplemented, it worked w

[Bug c++/56772] New: placement new operator does not work inside function template.

2013-03-28 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56772 Bug #: 56772 Summary: placement new operator does not work inside function template. Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONF

[Bug c++/55386] New: operator void called for class objects converted to void type.

2012-11-18 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55386 Bug #: 55386 Summary: operator void called for class objects converted to void type. Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONF

[Bug c++/55385] New: g++ failed to call final overrider of a virtual function.

2012-11-18 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55385 Bug #: 55385 Summary: g++ failed to call final overrider of a virtual function. Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED

[Bug c++/54264] internal compiler error on sample program from the C++ standard

2012-08-14 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54264 --- Comment #1 from meng at g dot clemson.edu 2012-08-14 21:44:31 UTC --- here is my command line: ~/gcc/4.7.0/bin/c++ -std=c++11 -Wall -O3 t1.cc and its output: t1.cc: In substitution of ‘template decltype (i(h())) f(T) [with T = int]’: t1.cc:8

[Bug c++/54264] New: internal compiler error on sample program from the C++ standard

2012-08-14 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54264 Bug #: 54264 Summary: internal compiler error on sample program from the C++ standard Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED

[Bug c++/53157] New: within lambda, error: lvalue required as unary ‘&’ operand

2012-04-28 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53157 Bug #: 53157 Summary: within lambda, error: lvalue required as unary ‘&’ operand Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED

[Bug c++/52953] g++-4.7.0 fails to detect function parameter name redeclarations.

2012-04-12 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52953 --- Comment #1 from meng at g dot clemson.edu 2012-04-12 21:53:36 UTC --- another example showing violation of c++11 3.3.3/4 BEGIN --- int main () { if (int a = 1) { void a (); // 1

[Bug c++/52953] New: g++-4.7.0 fails to detect function parameter name redeclarations.

2012-04-12 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52953 Bug #: 52953 Summary: g++-4.7.0 fails to detect function parameter name redeclarations. Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED

[Bug c++/52743] New: g++-4.7.0 seg faults on overload functions.

2012-03-27 Thread meng at g dot clemson.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52743 Bug #: 52743 Summary: g++-4.7.0 seg faults on overload functions. Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priori