public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107211] New: GCC compiles invalid use of non static member function in noexcept operator
@ 2022-10-11  7:23 jlame646 at gmail dot com
  2022-10-11 10:17 ` [Bug c++/107211] [10/11/12/13 Regression] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jlame646 at gmail dot com @ 2022-10-11  7:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107211
           Summary: GCC compiles invalid use of non static member function
                    in noexcept operator
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jlame646 at gmail dot com
  Target Milestone: ---

The following invalid program is accepted by gcc trunk. Demo:
https://godbolt.org/z/fez5GqKdT

```

struct C
{
    void func() noexcept
    {

    }
    void f() noexcept(noexcept(C::func)) //gcc compiles this
    {
    }
};
```
This has been discussed here:
https://stackoverflow.com/questions/74024368/gcc-compiles-use-of-noexcept-operator-but-clang-and-msvc-rejects-it

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

end of thread, other threads:[~2023-07-07 10:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-11  7:23 [Bug c++/107211] New: GCC compiles invalid use of non static member function in noexcept operator jlame646 at gmail dot com
2022-10-11 10:17 ` [Bug c++/107211] [10/11/12/13 Regression] " redi at gcc dot gnu.org
2022-10-18  7:52 ` rguenth at gcc dot gnu.org
2023-07-07 10:44 ` [Bug c++/107211] [11/12/13/14 " rguenth at gcc dot gnu.org

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).