public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67678] New: Nested class can be re-declared after definition
@ 2015-09-22 10:04 redi at gcc dot gnu.org
2015-09-26 16:56 ` [Bug c++/67678] " daniel.kruegler at googlemail dot com
2015-09-26 19:24 ` redi at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2015-09-22 10:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67678
Bug ID: 67678
Summary: Nested class can be re-declared after definition
Product: gcc
Version: 5.2.1
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Target Milestone: ---
This should give a diagnostic:
struct A { struct B{}; struct B; };
9.2 [class.mem] p1:
A member shall not be declared twice in the member-specification,
except that a nested class or member class template can be declared
and then later defined, [...]
Clang warns:
x.cc:1:31: warning: class member cannot be redeclared
[-Wredeclared-class-member]
struct A { struct B{}; struct B; };
^
x.cc:1:19: note: previous declaration is here
struct A { struct B{}; struct B; };
^
1 warning generated.
EDG warns:
"x.cc", line 1: warning: invalid redeclaration of nested class
struct A { struct B{}; struct B; };
^
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/67678] Nested class can be re-declared after definition
2015-09-22 10:04 [Bug c++/67678] New: Nested class can be re-declared after definition redi at gcc dot gnu.org
@ 2015-09-26 16:56 ` daniel.kruegler at googlemail dot com
2015-09-26 19:24 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2015-09-26 16:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67678
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler@googlemail.
| |com
--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
Personally I think that allowing this looks like a reasonable extension, but I
agree that using -pedantic this should be diagnosed (which it doesn't yet).
>From gcc-bugs-return-498095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 26 16:59:10 2015
Return-Path: <gcc-bugs-return-498095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38401 invoked by alias); 26 Sep 2015 16:59:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 38367 invoked by uid 48); 26 Sep 2015 16:59:06 -0000
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67687] [c++0x][constexpr] initialize constexpr member with constexpr constructor
Date: Sat, 26 Sep 2015 16:59: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-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: critical
X-Bugzilla-Who: daniel.kruegler at googlemail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-67687-4-vandihcJJD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67687-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67687-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-09/txt/msg02073.txt.bz2
Content-length: 499
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67687
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler@googlemail.
| |com
--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
Same problem in 6.0 trunk
>From gcc-bugs-return-498096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Sep 26 17:08:59 2015
Return-Path: <gcc-bugs-return-498096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 52114 invoked by alias); 26 Sep 2015 17:08:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 52086 invoked by uid 48); 26 Sep 2015 17:08:55 -0000
From: "ikozhukhov at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/67725] New: all gcc versions has hardcoded LD path with bootstrap on illumos platform
Date: Sat, 26 Sep 2015 17:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ikozhukhov at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-67725-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-09/txt/msg02074.txt.bz2
Content-length: 1092
https://gcc.gnu.org/bugzilla/show_bug.cgi?idg725
Bug ID: 67725
Summary: all gcc versions has hardcoded LD path with bootstrap
on illumos platform
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: ikozhukhov at gmail dot com
Target Milestone: ---
on autotools i can see we try to use for solaris2* targets :
ld=/usr/ccs/bin/ld
example from gcc-4.8.5/gcc/acinclude.m4:
line 518: gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
it is mistake to use hadrcoded ld path because on illumos we have
ld=/usr/bin/ld and we can specify correct path by:
--without-gnu-ld --with-ld=/usr/bin/ld
but by autotools we will try to identify LD version by hardcoded
/usr/ccs/bin/ld and it is mistake.
have to fix it on all gcc versions, because for DilOS (http://www.dilos.org,
illumos based platform) i have plans remove old /usr/ccs links and it will
failed with gcc bootstrap.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/67678] Nested class can be re-declared after definition
2015-09-22 10:04 [Bug c++/67678] New: Nested class can be re-declared after definition redi at gcc dot gnu.org
2015-09-26 16:56 ` [Bug c++/67678] " daniel.kruegler at googlemail dot com
@ 2015-09-26 19:24 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2015-09-26 19:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67678
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes, it might be an intentional GNU extension. Older versions of Clang warned
about it with the -Wgnu option rather than -Wredeclared-class-member.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-26 19:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-22 10:04 [Bug c++/67678] New: Nested class can be re-declared after definition redi at gcc dot gnu.org
2015-09-26 16:56 ` [Bug c++/67678] " daniel.kruegler at googlemail dot com
2015-09-26 19:24 ` redi 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).