From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5615 invoked by alias); 10 Feb 2006 15:00:20 -0000 Received: (qmail 5351 invoked by uid 48); 10 Feb 2006 15:00:16 -0000 Date: Fri, 10 Feb 2006 15:00:00 -0000 Message-ID: <20060210150016.5344.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/26195] pragma interface no longer handles explicit names In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "zak at transversal dot com" 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 X-SW-Source: 2006-02/txt/msg01023.txt.bz2 List-Id: ------- Comment #1 from zak at transversal dot com 2006-02-10 15:00 ------- I think the bug here is that handle_pragma_interface in gcc/cp/lex.c is calling get_file_info(filename), which refers to the name in the #pragma, rather than get_file_info(lbasename(input_filename)) -- hence it is updating the wrong c_fileinfo struct. This was changed here: http://gcc.gnu.org/viewcvs/branches/gcc-4_0-branch/gcc/cp/lex.c?r1=87774&r2=87786&diff_format=h Reverting that one line appears to fix the problem, although I haven't (yet) tested it extensively. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26195