public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94553] New: Revisit [basic.scope.declarative]/4.2
@ 2020-04-10 18:11 mpolacek at gcc dot gnu.org
  2020-04-10 18:12 ` [Bug c++/94553] " mpolacek at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-04-10 18:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94553
           Summary: Revisit [basic.scope.declarative]/4.2
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

<http://eel.is/c++draft/basic.scope#declarative-4.2> has a note:
A structured binding ([dcl.struct.bind]), namespace name ([basic.namespace]),
or class template name ([temp.pre]) must be unique in its declarative region.
but we don't fully implement that.  Consequently, the following is
accepts-valid.  (The structured binding part was added in CWG 2289.)

void
f ()
{
  int arr[1] = { 1 };
  struct A { };
  auto [A] = arr; // error
  auto [B] = arr;
  struct B { }; // error
}

struct C { };
template<typename> int C; // error
template<typename> int D;
struct D { }; // error

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

end of thread, other threads:[~2020-06-29 15:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-10 18:11 [Bug c++/94553] New: Revisit [basic.scope.declarative]/4.2 mpolacek at gcc dot gnu.org
2020-04-10 18:12 ` [Bug c++/94553] " mpolacek at gcc dot gnu.org
2020-04-10 23:18 ` mpolacek at gcc dot gnu.org
2020-05-13 16:23 ` [Bug c++/94553] Revise [basic.scope.declarative]/4.2 mpolacek at gcc dot gnu.org
2020-05-20 17:39 ` cvs-commit at gcc dot gnu.org
2020-05-20 17:41 ` mpolacek at gcc dot gnu.org
2020-06-26 16:07 ` mpolacek at gcc dot gnu.org
2020-06-29 15:02 ` cvs-commit at gcc dot gnu.org
2020-06-29 15:11 ` 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).