public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "manu at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/8570] line number in error message is badly placed with illegal template friend declaration Date: Mon, 12 Nov 2007 00:29:00 -0000 [thread overview] Message-ID: <20071112002854.4312.qmail@sourceware.org> (raw) In-Reply-To: <bug-8570-589@http.gcc.gnu.org/bugzilla/> ------- Comment #6 from manu at gcc dot gnu dot org 2007-11-12 00:28 ------- Subject: Bug 8570 Author: manu Date: Mon Nov 12 00:28:41 2007 New Revision: 130092 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130092 Log: 2007-11-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR c++/8570 cp/ * pt.c (redeclare_class_template): Update error message. Use a note to show the previous declaration. (tsubst_friend_class): Use the location of the friend template as the input location before calling redeclare_class_template. testsuite/ * g++.old-deja/g++.ns/template13.C: Update expected output. * g++.old-deja/g++.pt/friend23.C: Likewise. * g++.dg/warn/pr8570.C: New. Added: trunk/gcc/testsuite/g++.dg/warn/pr8570.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.old-deja/g++.ns/template13.C trunk/gcc/testsuite/g++.old-deja/g++.pt/friend23.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8570
next prev parent reply other threads:[~2007-11-12 0:29 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-8570-589@http.gcc.gnu.org/bugzilla/> 2007-11-10 21:28 ` manu at gcc dot gnu dot org 2007-11-12 0:29 ` manu at gcc dot gnu dot org 2007-11-12 0:29 ` manu at gcc dot gnu dot org [this message] 2007-11-12 5:56 ` patchapp at dberlin dot org [not found] <20021113205602.8570.llib@computer.org> 2003-09-08 7:36 ` ebotcazou at gcc dot gnu dot org 2004-07-26 4:10 ` pinskia at gcc dot gnu dot org 2004-07-28 14:45 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20071112002854.4312.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).