This is the mail archive of the 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]

c++/6531: attribute error

>Number:         6531
>Category:       c++
>Synopsis:       attribute error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Wed May 01 06:36:00 PDT 2002
>Release:        h8300-elf-g++ (GCC) 3.1 20020429 (prerelease)
RedHat Linux 6.2
weaktest.cpp:7: `void bar()' defined both normally and as an alias
weaktest.cpp:7: weak declaration of `void bar()' must precede definition

extern "C" void bar( );

extern "C" void foo( )

extern "C" void bar( ) __attribute__ ((weak)) __attribute__ ((alias ("foo")));

*** decl.c.old  Wed May  1 22:26:14 2002
--- decl.c      Wed May  1 22:27:53 2002
*** 3505,3511 ****
       except for any that we copy here from the old type.  */
    DECL_ATTRIBUTES (newdecl)
      = (*targetm.merge_decl_attributes) (olddecl, newdecl);
-   decl_attributes (&newdecl, DECL_ATTRIBUTES (newdecl), 0);
    if (TREE_CODE (newdecl) == TEMPLATE_DECL)
--- 3505,3510 ----

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