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

c++/6074 is a regression from 2.95


c++/6074 is about the following:
--------------------------------------
extern
void foo(void);
void foo(void) __attribute__ ((weak)) __attribute__ ((alias ("__foo")));
--------------------------------------

In 2.95 and present 3.3 CVS, this is accepted by both the C and C++ 
compilers. In 3.2, C++ rejects this:
    weak.cc:3: `void foo()' defined both normally and as an alias
The C compiler accepts it.

Technically, this is a regression, but a very weak (pun intended) one. 
Since it's already fixed in 3.3, I'll leave it up to others whether this 
merits fixing, or what else should happen to this report.

Regards
  Wolfgang

-------------------------------------------------------------------------
Wolfgang Bangerth              email:           bangerth@ticam.utexas.edu
                               www: http://www.ticam.utexas.edu/~bangerth



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