From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21696 invoked by alias); 15 Jul 2010 00:35:04 -0000 Received: (qmail 21568 invoked by uid 48); 15 Jul 2010 00:34:45 -0000 Date: Thu, 15 Jul 2010 00:35:00 -0000 Message-ID: <20100715003445.21567.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/44641] Generated constructors and destructors get wrong debug location when a typedef uses a forward declaration of the type before the definition In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jyasskin at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg01523.txt.bz2 ------- Comment #1 from jyasskin at gmail dot com 2010-07-15 00:34 ------- My current guess is that the bug is at parser.c:16741, at the end of cp_parser_class_head(): DECL_SOURCE_LOCATION (TYPE_NAME (type)) = type_start_token->location; This updates the template's location, but it doesn't update the locations of any instantiations that have already been created. I'm going to try to find the existing instantiations to update them there. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44641