From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20437 invoked by alias); 22 Sep 2003 15:09:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 20427 invoked by uid 48); 22 Sep 2003 15:09:06 -0000 Date: Mon, 22 Sep 2003 15:19:00 -0000 From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20030922150906.12368.bangerth@dealii.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/12368] New: Duplicate error message for default argument X-Bugzilla-Reason: CC X-SW-Source: 2003-09/txt/msg01743.txt.bz2 List-Id: 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 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.