------- 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