Index: cp/semantics.c =================================================================== --- cp/semantics.c (revision 203101) +++ cp/semantics.c (working copy) @@ -8422,6 +8422,7 @@ potential_constant_expression_1 (tree t, bool want case OVERLOAD: case TEMPLATE_ID_EXPR: case LABEL_DECL: + case LABEL_EXPR: case CONST_DECL: case SIZEOF_EXPR: case ALIGNOF_EXPR: Index: testsuite/g++.dg/parse/crash64.C =================================================================== --- testsuite/g++.dg/parse/crash64.C (revision 0) +++ testsuite/g++.dg/parse/crash64.C (working copy) @@ -0,0 +1,7 @@ +// PR c++/58565 +// { dg-options "" } + +void foo() +{ + int i = ({ L: ; }); // { dg-error "void value not ignored" } +}