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++/17344] New: spurious error


The error reported in the example is bogus; there is no error. After sleuthing, 
it turns out that the report goes away if a particular copy constrictor in an 
unrelated and unused other class is removed. In the sample code attached, search for "COMMENT OUT NEXT LINE" and comment out the following line and the code will compile OK. Any significant simplication also seems to make the problem go away too. Note that the problem-causing constructor is in a template class that is never used, while the reported error is elsewhere completely.

BTW, a caution: this looks to me like some compiler internal structure is being overwritten. Consequently it is likely that the bug will disappear or show up differently in any other compiler version. So if it doesn't show on 5.0, please don't assume it's been fixed; much more likely is that it has simply been hidden by internal compiler remappings, and when you find the problem in 4.0 and look in the code of 5.0 etc you will find the bug is still there, just displayed differently. The voice of experience :-)

Ivan

-- 
           Summary: spurious error
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17344


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