[Bug c++/12368] New: Duplicate error message for default argument

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 22 15:19:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Duplicate error message for default argument
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: gdr at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org

This code
----------------------
template<typename C>
int foo(C c = &g) {};
----------------------
generates this message with present mainline:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc:2: error: `g' was not declared in this scope
x.cc:2: error: `g' was not declared in this scope

While correct, we get it once too often.

W.



More information about the Gcc-bugs mailing list