https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70093
Bug ID: 70093
Summary: Instancing function with VM type cases internal
compiler error in 'assign_stack_temp_for_type'.
Product: gcc
Version: 5.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: sasho648 at gmail dot com
Target Milestone: ---
Consider this example:
int main(int argc, char **argv)
{
struct {int _[argc];} fn() { }
fn(); //comment to trigger error on the next line
__typeof__(fn()) *p;
}
At the time local function 'fn' is instanced (either explicitly or using
'__typeof__') the following error is displayed:
internal compiler error: in assign_stack_temp_for_type, at function.c:793