public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94765] New: Floating point type template parameter
@ 2020-04-25 20:06 emmanuel.le-trong@cnrs-orleans.fr
  2020-04-25 23:16 ` [Bug c++/94765] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: emmanuel.le-trong@cnrs-orleans.fr @ 2020-04-25 20:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94765
           Summary: Floating point type template parameter
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: emmanuel.le-trong@cnrs-orleans.fr
  Target Milestone: ---

With C++20, non-type template parameters can now be any scalar type[0] which
include floating point types[1]. So this

    template <double> struct S {};

should compile. The rules for type equivalence are straightforward[2]

[0] http://eel.is/c++draft/temp#param-6
[1] http://eel.is/c++draft/basic.types#9
[2] http://eel.is/c++draft/temp.type#2

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

end of thread, other threads:[~2020-08-03 23:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-25 20:06 [Bug c++/94765] New: Floating point type template parameter emmanuel.le-trong@cnrs-orleans.fr
2020-04-25 23:16 ` [Bug c++/94765] " redi at gcc dot gnu.org
2020-05-07 19:01 ` mpolacek at gcc dot gnu.org
2020-08-03 23:23 ` 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).