[Bug c++/79490] ICE when using -fsyntax-only with CATCH unit testing framework header

2017-12-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79490

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |7.2

--- Comment #8 from Paolo Carlini  ---
Fixed in 7.2.0.

[Bug c++/79490] ICE when using -fsyntax-only with CATCH unit testing framework header

2017-12-19 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79490

--- Comment #7 from paolo at gcc dot gnu.org  ---
Author: paolo
Date: Tue Dec 19 09:26:39 2017
New Revision: 255812

URL: https://gcc.gnu.org/viewcvs?rev=255812&root=gcc&view=rev
Log:
2017-12-19  Paolo Carlini  

PR c++/79490
* g++.dg/other/fsyntax-only2.C: New.

Added:
trunk/gcc/testsuite/g++.dg/other/fsyntax-only2.C
Modified:
trunk/gcc/testsuite/ChangeLog

[Bug c++/79490] ICE when using -fsyntax-only with CATCH unit testing framework header

2017-02-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79490

Jonathan Wakely  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
 Status|WAITING |NEW
Summary|ICE when compiling CATCH|ICE when using
   |unit testing framework  |-fsyntax-only with CATCH
   |header  |unit testing framework
   ||header

--- Comment #6 from Jonathan Wakely  ---
Thanks. C-Reduce stripped it down to this, which ICEs with -fsyntax-only

struct IRegistryHub {
  virtual ~IRegistryHub();
};
namespace {
class A : IRegistryHub {};
A *fn1();
}
void fn2() { delete fn1(); }