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

[Bug c++/14432] New: [3.4/3.5 regression] Built-ins lead to conflict even if no header file included


[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


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