public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/93689] ICE with default argument in lambda used as non type template argument
       [not found] <bug-93689-4@http.gcc.gnu.org/bugzilla/>
@ 2020-09-02 10:39 ` bastien.penavayre at epitech dot eu
  2020-09-02 10:55 ` bastien.penavayre at epitech dot eu
  1 sibling, 0 replies; 2+ messages in thread
From: bastien.penavayre at epitech dot eu @ 2020-09-02 10:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93689

bastien penavayre <bastien.penavayre at epitech dot eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bastien.penavayre at epitech dot e
                   |                            |u

--- Comment #6 from bastien penavayre <bastien.penavayre at epitech dot eu> ---
It seems that it's the cast '(int)0' that causes the issue.
If we remove the cast it works fine:

```
template <
    auto Z = [](int l = 0) -> int { return l; }
>
int f() {
    return Z();
}

int main() {
    return f();
}
```

https://godbolt.org/z/zq3E7M

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/93689] ICE with default argument in lambda used as non type template argument
       [not found] <bug-93689-4@http.gcc.gnu.org/bugzilla/>
  2020-09-02 10:39 ` [Bug c++/93689] ICE with default argument in lambda used as non type template argument bastien.penavayre at epitech dot eu
@ 2020-09-02 10:55 ` bastien.penavayre at epitech dot eu
  1 sibling, 0 replies; 2+ messages in thread
From: bastien.penavayre at epitech dot eu @ 2020-09-02 10:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93689

--- Comment #7 from bastien penavayre <bastien.penavayre at epitech dot eu> ---
somewhat related 93595 ( https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93595 )
is still in UNCONFIRMED state.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-02 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-93689-4@http.gcc.gnu.org/bugzilla/>
2020-09-02 10:39 ` [Bug c++/93689] ICE with default argument in lambda used as non type template argument bastien.penavayre at epitech dot eu
2020-09-02 10:55 ` bastien.penavayre at epitech dot eu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).