public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109621] New: GCC accepts invalid program with multiple using declarations
@ 2023-04-25 10:05 jlame646 at gmail dot com
  2023-04-25 15:29 ` [Bug c++/109621] [10/11/12/13/14 Regression] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jlame646 at gmail dot com @ 2023-04-25 10:05 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109621
           Summary: GCC accepts invalid program with multiple using
                    declarations
           Product: gcc
           Version: 13.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jlame646 at gmail dot com
  Target Milestone: ---

The following invalid program(afaik) is accepted by gcc and msvc.
https://godbolt.org/z/1Tsx54ro5

```
namespace X 
{ 
    struct type {}; 
}
namespace Y 
{ 
    using type = int; 
}
using X::type;
using Y::type;
int main()
{
    auto i = sizeof(type); //gcc and msvc accepts this but clang rejects this
}
```

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

end of thread, other threads:[~2024-01-12 10:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-25 10:05 [Bug c++/109621] New: GCC accepts invalid program with multiple using declarations jlame646 at gmail dot com
2023-04-25 15:29 ` [Bug c++/109621] [10/11/12/13/14 Regression] " pinskia at gcc dot gnu.org
2023-04-25 17:24 ` redi at gcc dot gnu.org
2023-04-25 17:25 ` redi at gcc dot gnu.org
2023-07-07 10:45 ` [Bug c++/109621] [11/12/13/14 " rguenth at gcc dot gnu.org
2024-01-12 10:36 ` rguenth 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).