------- Comment #2 from jakub at gcc dot gnu dot org 2009-01-04 23:38 ------- The C FE converts this to void * pointer silently: 7168 tree 7169 c_finish_goto_ptr (tree expr) 7170 { 7171 pedwarn (input_location, OPT_pedantic, "ISO C forbids %<goto *expr;%>"); 7172 expr = convert (ptr_type_node, expr); 7173 return add_stmt (build1 (GOTO_EXPR, void_type_node, expr)); 7174 } but the C++ FE doesn't. Either C++ should do the same as C, or both should reject it.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38725