Commit aa16c0fa by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

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
parent 342cea95
2002-06-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> 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 PR c++/6723
* pt.c (lookup_template_class): Don't build complete argument of * pt.c (lookup_template_class): Don't build complete argument of
BOUND_TEMPLATE_TEMPLATE_PARM if appeared as a default template BOUND_TEMPLATE_TEMPLATE_PARM if appeared as a default template
......
...@@ -7522,6 +7522,11 @@ tsubst_expr (t, args, complain, in_decl) ...@@ -7522,6 +7522,11 @@ tsubst_expr (t, args, complain, in_decl)
finish_label_stmt (DECL_NAME (LABEL_STMT_LABEL (t))); finish_label_stmt (DECL_NAME (LABEL_STMT_LABEL (t)));
break; 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: case GOTO_STMT:
prep_stmt (t); prep_stmt (t);
tmp = GOTO_DESTINATION (t); tmp = GOTO_DESTINATION (t);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment