public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/6992: GCC-3.1.x - attribute 'section' broken for constructors
@ 2002-08-02 6:56 Petr Sebor
0 siblings, 0 replies; 2+ messages in thread
From: Petr Sebor @ 2002-08-02 6:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/6992; it has been noted by GNATS.
From: Petr Sebor <petr@scssoft.com>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Cc:
Subject: Re: c++/6992: GCC-3.1.x - attribute 'section' broken for constructors
Date: Fri, 02 Aug 2002 15:51:01 +0200
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6992
still broken in gcc-3.1.1
Regards,
Petr
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/6992: GCC-3.1.x - attribute 'section' broken for constructors
@ 2002-06-11 7:06 petr
0 siblings, 0 replies; 2+ messages in thread
From: petr @ 2002-06-11 7:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 6992
>Category: c++
>Synopsis: GCC-3.1.x - attribute 'section' broken for constructors
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Tue Jun 11 07:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: petr@scssoft.com
>Release: gcc-3.1.x
>Organization:
>Environment:
debian linux x86
>Description:
class a {
public:
__attribute__((section("whatever"))) a();
__attribute__((section("whatever"))) void b(void);
};
this is how it used to work until gcc-3.0.4 or so...
after upgrading to gcc-3.1 (debian package), the
code chunk mentioned before fails to compile with this complaint (only for the class constructor):
warning: 'section' attribute ignored
declaration does not declare anything
parse error before ')' token
however, this works:
class a {
public:
a() __attribute__((section("whatever")));
__attribute__((section("whatever"))) void b(void);
};
shouldn't be theese two constructor declarations equivalent?
a() __attribute__((section("whatever")));
__attribute__((section("whatever"))) a();
>How-To-Repeat:
try to compile this:
class a {
public:
__attribute__((section("whatever"))) a();
};
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-02 13:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-02 6:56 c++/6992: GCC-3.1.x - attribute 'section' broken for constructors Petr Sebor
-- strict thread matches above, loose matches on Subject: below --
2002-06-11 7:06 petr
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).