public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101733] New: simple-requirement prefixed with typename interpreted as type-requirement
@ 2021-08-02 19:17 johelegp at gmail dot com
  2021-08-02 19:49 ` [Bug c++/101733] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: johelegp at gmail dot com @ 2021-08-02 19:17 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101733
           Summary: simple-requirement prefixed with typename interpreted
                    as type-requirement
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
                CC: johelegp at gmail dot com
  Target Milestone: ---

See https://godbolt.org/z/q67Mserar.
```C++
template<class T>
concept C = requires {
  typename T::x();
  typename T::x() + 1;
  1 + typename T::x();
};
```
```
<source>:3:16: error: expected ';' before '(' token
    3 |   typename T::x();
      |                ^
      |                ;
<source>:4:16: error: expected ';' before '(' token
    4 |   typename T::x() + 1;
      |                ^
      |                ;
Compiler returned: 1
```

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

end of thread, other threads:[~2022-11-28 20:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-02 19:17 [Bug c++/101733] New: simple-requirement prefixed with typename interpreted as type-requirement johelegp at gmail dot com
2021-08-02 19:49 ` [Bug c++/101733] " pinskia at gcc dot gnu.org
2022-10-18 12:39 ` redi at gcc dot gnu.org
2022-11-26 16:12 ` jason at gcc dot gnu.org
2022-11-28 20:52 ` cvs-commit 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).