[Bug c++/68628] [concepts] ICE: segmentation fault in crash_signal, toplev.c:334

2020-05-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68628

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org
 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Marek Polacek  ---
Invalid code that no longer ICEs, so let's close this.

[Bug c++/68628] [concepts] ICE: segmentation fault in crash_signal, toplev.c:334

2019-10-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68628

Jonathan Wakely  changed:

   What|Removed |Added

   Keywords||ice-on-invalid-code
  Known to work||10.0, 9.2.0
  Known to fail||8.3.0

--- Comment #1 from Jonathan Wakely  ---
No ICE with gcc-9-branch or current trunk:

68628.cc:12:61: error: expected parameter pack before '...'
   12 |   is_convertible::value;
  | ^~~
68628.cc:12:41: error: invalid template-argument-list
   12 |   is_convertible::value;
  | ^~~
68628.cc:12:41: note: function name as the left hand operand of '<' is
ill-formed in C++2a; wrap the function name in '()'
68628.cc:12:64: error: no matching function for call to
'internal::B::impl(void (&)())'
   12 |   is_convertible::value;
  |^
68628.cc:7:35: note: candidate: 'template static auto
internal::A::impl()'
7 |   template  static auto impl();
  |   ^~~~
68628.cc:7:35: note:   template argument deduction/substitution failed:
68628.cc:12:64: note:   candidate expects 0 arguments, 1 provided
   12 |   is_convertible::value;
  |^
68628.cc:12:64: error: no matching function for call to
'internal::B::impl(void (&)())'
68628.cc:7:35: note: candidate: 'template static auto
internal::A::impl()'
7 |   template  static auto impl();
  |   ^~~~
68628.cc:7:35: note:   template argument deduction/substitution failed:
68628.cc:12:64: note:   candidate expects 0 arguments, 1 provided
   12 |   is_convertible::value;
  |^
68628.cc:12:66: error: template argument 2 is invalid
   12 |   is_convertible::value;
  |  ^
68628.cc: In instantiation of 'bool Invokable<, int>':
68628.cc:21:17:   required from here
68628.cc:20:64: error: no match for call to '(internal::B< >) (void
(&)())'
   20 | template  bool
Invokable{invoke_as(forward)};
  | 
~~^
68628.cc:11:8: note: candidate: 'auto internal::B::operator()(F, Args ...)
requires   [with F = void (*)(); Args = {}; Ret =
]'
   11 |   auto operator()(F, Args... args) requires
  |^~~~
68628.cc:11:8: note: constraints not satisfied
68628.cc:21:56: error: expected ',' at end of input
   21 | static_assert ( Invokable < decltype ( functor ), int >
  | ~~~^
  |,
68628.cc:21:17: error: expected string-literal at end of input
   21 | static_assert ( Invokable < decltype ( functor ), int >
  | ^~~
68628.cc:21:56: error: expected ')' at end of input
   21 | static_assert ( Invokable < decltype ( functor ), int >
  |   ~ ~~~^
  |)
68628.cc:21:56: error: expected ';' at end of input
   21 | static_assert ( Invokable < decltype ( functor ), int >
  | ~~~^
  |;

[Bug c++/68628] [concepts] ICE: segmentation fault in crash_signal, toplev.c:334

2017-10-07 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68628

Paolo Carlini  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-10-07
 Ever confirmed|0   |1