From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22593 invoked by alias); 15 Mar 2013 09:25:34 -0000 Received: (qmail 22439 invoked by uid 48); 15 Mar 2013 09:25:13 -0000 From: "Woebbeking at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/11764] [DR147] g++ does not treat injected class name correctly. Date: Fri, 15 Mar 2013 09:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: Woebbeking at web dot de X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.5.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-03/txt/msg01118.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D11764 --- Comment #24 from Andr=C3=A9 W=C3=B6bbeking 2= 013-03-15 09:25:02 UTC --- OK, I read some explanations in the duplicates but still don't know why this should be valid code. IMO it makes no sense to write A:A:A:B and given the facts that 1) people don't write this intentionally 2) people expect this to be invalid (see number of duplicates) 3) some other compiler don't compile this couldn't you at least give us a warning (e. g. with -pedantic)?