public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101884] New: Generic lambda with auto in template parameter list rejected
@ 2021-08-12 16:24 johelegp at gmail dot com
  2022-01-11  2:38 ` [Bug c++/101884] " pinskia at gcc dot gnu.org
  2022-01-11  2:39 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: johelegp at gmail dot com @ 2021-08-12 16:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101884
           Summary: Generic lambda with auto in template parameter list
                    rejected
           Product: gcc
           Version: 12.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/Go36onYGc.
```C++
template<auto=[](auto){}>int i;
```
```
<source>:1:18: error: 'auto' parameter not permitted in this context
    1 | template<auto=[](auto){}>int i;
      |                  ^~~~
Compiler returned: 1
```

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

* [Bug c++/101884] Generic lambda with auto in template parameter list rejected
  2021-08-12 16:24 [Bug c++/101884] New: Generic lambda with auto in template parameter list rejected johelegp at gmail dot com
@ 2022-01-11  2:38 ` pinskia at gcc dot gnu.org
  2022-01-11  2:39 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-11  2:38 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egor.pugin at gmail dot com

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 103969 has been marked as a duplicate of this bug. ***

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

* [Bug c++/101884] Generic lambda with auto in template parameter list rejected
  2021-08-12 16:24 [Bug c++/101884] New: Generic lambda with auto in template parameter list rejected johelegp at gmail dot com
  2022-01-11  2:38 ` [Bug c++/101884] " pinskia at gcc dot gnu.org
@ 2022-01-11  2:39 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-11  2:39 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 88313.

*** This bug has been marked as a duplicate of bug 88313 ***

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

end of thread, other threads:[~2022-01-11  2:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-12 16:24 [Bug c++/101884] New: Generic lambda with auto in template parameter list rejected johelegp at gmail dot com
2022-01-11  2:38 ` [Bug c++/101884] " pinskia at gcc dot gnu.org
2022-01-11  2:39 ` pinskia 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).