This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14432] New: [3.4/3.5 regression] Built-ins lead to conflict even if no header file included
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2004 16:01:02 -0000
- Subject: [Bug c++/14432] New: [3.4/3.5 regression] Built-ins lead to conflict even if no header file included
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[Extracted from 14430] Consider this:
--------------
struct Y {};
Y y1;
--------------
There are no header files included, yet we get from mainline and 3.4:
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc
x.cc:2: error: declaration of `Y y1'
<internal>:0: error: conflicts with previous declaration `double y1(double)'
This is due to the fact that there is a built-in for the Bessel function y1.
However, it should certainly not be visible if no header files are included.
That's the bug, and it is a regression against 3.3.x.
W.
--
Summary: [3.4/3.5 regression] Built-ins lead to conflict even if
no header file included
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14432