re PR c++/6892 (ICE from #include inside switch(){} inside template function)

PR c++/6892
	* pt.c (tsubst_expr): Handle FILE_STMT.

From-SVN: r54832
This commit is contained in:
Kriang Lerdsuwanakij 2002-06-20 14:44:37 +00:00 committed by Kriang Lerdsuwanakij
parent 342cea9509
commit aa16c0facc
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-06-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/6892
* pt.c (tsubst_expr): Handle FILE_STMT.
2002-06-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/6723

View File

@ -7522,6 +7522,11 @@ tsubst_expr (t, args, complain, in_decl)
finish_label_stmt (DECL_NAME (LABEL_STMT_LABEL (t)));
break;
case FILE_STMT:
input_filename = FILE_STMT_FILENAME (t);
add_stmt (build_nt (FILE_STMT, FILE_STMT_FILENAME_NODE (t)));
break;
case GOTO_STMT:
prep_stmt (t);
tmp = GOTO_DESTINATION (t);