re PR c++/6892 (ICE from #include inside switch(){} inside template function)
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Thu, 20 Jun 2002 14:44:37 +0000 (14:44 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Thu, 20 Jun 2002 14:44:37 +0000 (14:44 +0000)
PR c++/6892
* pt.c (tsubst_expr): Handle FILE_STMT.

From-SVN: r54832

gcc/cp/ChangeLog
gcc/cp/pt.c

index b570cc32ee701cd74e35737c83b69e9a6eeec257..b3df1ad53ff6b06f1bef4e70a86d346f6b55f363 100644 (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
index c10012247dc762aec0f66038099a003d26e99831..dbacef81f42e44617b247df63a8c2c508e728ba9 100644 (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);