From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27243 invoked by alias); 16 Feb 2004 18:32:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 27222 invoked by uid 48); 16 Feb 2004 18:32:39 -0000 Date: Mon, 16 Feb 2004 18:32:00 -0000 Message-ID: <20040216183239.27221.qmail@sources.redhat.com> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040216154444.14161.kczyz@zeus.polsl.gliwice.pl> References: <20040216154444.14161.kczyz@zeus.polsl.gliwice.pl> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/14161] [3.4/3.5 Regression] Constructors invoking priority problem X-Bugzilla-Reason: CC X-SW-Source: 2004-02/txt/msg01665.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-16 18:32 ------- This works though (but does not compile with anything before 3.4.0): #include #include struct P { P (int i) { printf("Doing %d\n", i ); } }; static P first __attribute__ ((init_priority (900))) (900) ; static P second __attribute__ ((init_priority (300))) (300); static P third __attribute__ ((init_priority (200))) (3); int main () { std::cout << "Blah." << std::endl; return 0; } -- What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |3.4.0 3.5.0 Known to work| |3.3.3 Target Milestone|--- |3.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14161