This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
c++/6074 is a regression from 2.95
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 24 Oct 2002 18:16:39 -0500 (CDT)
- Subject: 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