[patch c++]: Fix 61228 - noexcept(expression) causes internal compiler error

2014-12-12 Thread Kai Tietz
Hi, following patch fixes reported issue. Tested for x86_64-w64-mingw32. Ok for apply? Regards, Kai ChangeLog 2014-12-12 Kai Tietz kti...@redhat.com PR c++/61228 * call.c (set_flags_from_callee): Assume no throw by deferred noexcept. 2014-12-12 Kai Tietz kti...@redhat.com

Re: [patch c++]: Fix 61228 - noexcept(expression) causes internal compiler error

2014-12-12 Thread Paolo Carlini
Hi, On 12/12/2014 08:45 PM, Kai Tietz wrote: #include cctype #include algorithm I would recommend reducing the testcase further, algorithm is very large. Thanks, Paolo.

Re: [patch c++]: Fix 61228 - noexcept(expression) causes internal compiler error

2014-12-12 Thread Jason Merrill
I think it would be better to call maybe_instantiate_noexcept so that we can have a definite answer. Jason

Re: [patch c++]: Fix 61228 - noexcept(expression) causes internal compiler error

2014-12-12 Thread Kai Tietz
2014-12-12 21:15 GMT+01:00 Jason Merrill ja...@redhat.com: I think it would be better to call maybe_instantiate_noexcept so that we can have a definite answer. Jason Hmm, for case that decl != NULL_TREE, this is ok. But what if decl is NULL_TREE? Kai

Re: [patch c++]: Fix 61228 - noexcept(expression) causes internal compiler error

2014-12-12 Thread Jason Merrill
On 12/12/2014 03:58 PM, Kai Tietz wrote: 2014-12-12 21:15 GMT+01:00 Jason Merrill ja...@redhat.com: I think it would be better to call maybe_instantiate_noexcept so that we can have a definite answer. Jason Hmm, for case that decl != NULL_TREE, this is ok. But what if decl is NULL_TREE?