This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12634] New: Cannot specify "section attributes" on class constructors


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12634

           Summary: Cannot specify "section attributes" on class
                    constructors
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: weidmann at acm dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: Linux

The following code (which compiled a few years ago with egcs) fails to compile 
on gcc-3.3.1:

class foo {
public:
  foo();
};

foo::foo() __attribute__((section("bar")))
{
}

But works on regular class methods.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]