public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103401] New: gcc accepts decltype(auto(0)) as the parameter of the function
@ 2021-11-24  7:57 hewillk at gmail dot com
  2021-11-24  9:38 ` [Bug c++/103401] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: hewillk at gmail dot com @ 2021-11-24  7:57 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103401
           Summary: gcc accepts decltype(auto(0)) as the parameter of the
                    function
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

It seems that gcc should not accept this strange syntax, although I don't know
why f has two template parameters..

void f(decltype(auto(0))) { }

int main() {
  f<int,int>(0);
}

https://godbolt.org/z/PaevrsrE8

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

end of thread, other threads:[~2021-12-09 17:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-24  7:57 [Bug c++/103401] New: gcc accepts decltype(auto(0)) as the parameter of the function hewillk at gmail dot com
2021-11-24  9:38 ` [Bug c++/103401] " redi at gcc dot gnu.org
2021-11-24  9:40 ` [Bug c++/103401] [11/12 Regression] " redi at gcc dot gnu.org
2021-11-24 14:37 ` mpolacek at gcc dot gnu.org
2021-11-25  0:56 ` mpolacek at gcc dot gnu.org
2021-11-25  2:44 ` mpolacek at gcc dot gnu.org
2021-12-09 16:49 ` cvs-commit at gcc dot gnu.org
2021-12-09 17:26 ` mpolacek 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).