This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14161] [3.4/3.5 Regression] Constructors invoking priority problem
- From: "kczyz at zeus dot polsl dot gliwice dot pl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2004 17:36:01 -0000
- Subject: [Bug c++/14161] [3.4/3.5 Regression] Constructors invoking priority problem
- References: <20040216154444.14161.kczyz@zeus.polsl.gliwice.pl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From kczyz at zeus dot polsl dot gliwice dot pl 2004-02-16 17:35 -------
>We cannot do anything without a testcase. Can you supply one besides say
>download eCOS
There is testcase:
---------------------
#include <iostream>
struct P
{
P (int i) { std::cout << "Doing " << i << std::endl; }
};
static P first(900) __attribute__ ((init_priority (900)));
static P second(300) __attribute__ ((init_priority (300)));
static P third(3) __attribute__ ((init_priority (3)));
int main ()
{
std::cout << "Blah." << std::endl;
return 0;
}
C>arm-elf-g++ test.cxx
test.cxx:10: warning: attributes after parenthesized initializer ignored
test.cxx:11: warning: attributes after parenthesized initializer ignored
test.cxx:12: warning: attributes after parenthesized initializer ignored
So attributes are ignored, should they be ignored or not?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14161