public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100482] New: namespaces as int in decltype expression
@ 2021-05-08  2:45 hahayes12 at tutanota dot com
  2021-05-08  3:31 ` [Bug c++/100482] " sand at rifkin dot dev
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: hahayes12 at tutanota dot com @ 2021-05-08  2:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100482
           Summary: namespaces as int in decltype expression
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hahayes12 at tutanota dot com
  Target Milestone: ---

case:

#include <iostream>
int main() {
    decltype(std) i{1};
    std::cout << i;
}

g++ main.cpp

./a.out
1


as you can see namespaces are usable in decltype expressions and treated as
ints.

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

end of thread, other threads:[~2024-04-05  6:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-08  2:45 [Bug c++/100482] New: namespaces as int in decltype expression hahayes12 at tutanota dot com
2021-05-08  3:31 ` [Bug c++/100482] " sand at rifkin dot dev
2021-05-08  8:00 ` redi at gcc dot gnu.org
2021-05-10  8:04 ` rguenth at gcc dot gnu.org
2023-08-08 20:03 ` cvs-commit at gcc dot gnu.org
2024-04-05  6:48 ` nshead 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).