public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96840] New: Recursive substitution in constrained commutative operator
@ 2020-08-29  0:29 johelegp at gmail dot com
  2020-08-31  6:31 ` [Bug c++/96840] [11 Regression] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: johelegp at gmail dot com @ 2020-08-29  0:29 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96840
           Summary: Recursive substitution in constrained commutative
                    operator
           Product: gcc
           Version: 11.0
               URL: https://godbolt.org/z/cedacs
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
  Target Milestone: ---

I may be wrong, but I think this should compile. Clang accepts it as does GCC
10.2 and did the GCC 11 build from a little while ago.
See the URL:
```C++
template <class T, class U> concept C = requires(T t, U u) { t * u; };
template <class Rep> struct Int {
     template <class T> requires C<T, Rep> friend void operator*(T, Int) { }
     template <class T> requires C<T, Rep> friend void operator*(Int, T) { }
};
void f() { 0 * Int<int>{}; }
```

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

end of thread, other threads:[~2021-12-30 14:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-29  0:29 [Bug c++/96840] New: Recursive substitution in constrained commutative operator johelegp at gmail dot com
2020-08-31  6:31 ` [Bug c++/96840] [11 Regression] " rguenth at gcc dot gnu.org
2020-09-28 15:33 ` ppalka at gcc dot gnu.org
2020-10-16 12:05 ` rguenth at gcc dot gnu.org
2020-12-18  3:36 ` cvs-commit at gcc dot gnu.org
2021-02-01 17:58 ` ppalka at gcc dot gnu.org
2021-12-30 14:06 ` johelegp at gmail dot com
2021-12-30 14:23 ` johelegp at gmail dot com

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