From aa16c0facca1a54d453555e97546b941f197c661 Mon Sep 17 00:00:00 2001 From: Kriang Lerdsuwanakij Date: Thu, 20 Jun 2002 14:44:37 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/pt.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b570cc32ee7..b3df1ad53ff 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2002-06-20 Kriang Lerdsuwanakij + + PR c++/6892 + * pt.c (tsubst_expr): Handle FILE_STMT. + 2002-06-20 Kriang Lerdsuwanakij PR c++/6723 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index c10012247dc..dbacef81f42 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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); -- 2.30.2