]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/11756 (ICE's when using typeof in template function parameter type declarat...
authorJason Merrill <jason@redhat.com>
Thu, 4 Oct 2007 01:01:00 +0000 (21:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 4 Oct 2007 01:01:00 +0000 (21:01 -0400)
        PR c++/11756
        * mangle.c (write_type) [TYPEOF_TYPE]: Just sorry.

From-SVN: r128999

gcc/cp/ChangeLog
gcc/cp/mangle.c

index 2efe051eb8ff42950cb222e6b99878fac55dbac3..2e3353400544b5c0e2e7893884642ab553802fc4 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-03  Jason Merrill  <jason@redhat.com>
+
+       PR c++/11756
+       * mangle.c (write_type) [TYPEOF_TYPE]: Just sorry.
+
 2007-10-03  Alexandre Oliva  <aoliva@redhat.com>
 
        * decl.c (duplicate_decls): Preserve linkage flags for mere
index cad76e37631c210a09bfbcd7bd51c5c4c27dd898..7377a3ea455c6bd952c19a968ea47abffa8c5dd4 100644 (file)
@@ -1687,6 +1687,10 @@ write_type (tree type)
               write_char ('E');
               break;
 
+           case TYPEOF_TYPE:
+             sorry ("mangling typeof, use decltype instead");
+             break;
+
            default:
              gcc_unreachable ();
            }