https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762
Andrew Pinski changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762
--- Comment #8 from Curdeius Curdeius ---
A different (rather small) reproduce.
https://godbolt.org/z/bz9sTd34o
It fails with all the versions of gcc from at least 7 (the above code needs
`auto` in template non-type parameter) to trunk from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762
--- Comment #7 from Evgeniy Dushistov ---
Here simple example extracted from Qt 6 git:
```
template
struct Prop {
void notify()
{
if constexpr (Signal != nullptr) {
}
}
};
class QObjectPrivate {
public:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762
--- Comment #2 from Marek Polacek ---
The compile-time error goes away when adding
-fno-sanitize=null,returns-nonnull-attribute,nonnull-attribute to the
command-line options.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762
--- Comment #3 from Marek Polacek ---
Not reducing anymore; creduce dies for me :(.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762
--- Comment #4 from Markus Trippelsdorf ---
(In reply to Marek Polacek from comment #3)
> Not reducing anymore; creduce dies for me :(.
Yes, I was unsuccessful in reducing it with creduce, too.
(Well, clang doesn't support C++ concepts yet, so
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762
Markus Trippelsdorf changed:
What|Removed |Added
Attachment #36415|0 |1
is obsolete|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762
Markus Trippelsdorf changed:
What|Removed |Added
Attachment #36417|0 |1
is obsolete|