re PR c++/11756 (ICE's when using typeof in template function parameter type declarations)

PR c++/11756
        * mangle.c (write_type) [TYPEOF_TYPE]: Just sorry.

From-SVN: r128999
This commit is contained in:
Jason Merrill 2007-10-03 21:01:00 -04:00 committed by Jason Merrill
parent a4510cfbba
commit 231d066518
2 changed files with 9 additions and 0 deletions

View 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

View 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 ();
}