﻿id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc
201	GCC-7,8,9 Bug with -O2,3	m3zulfiq		"Compiling the program below will give the following error with GCC versions 7, 8, and 9 if optimization level is O2 or O3:

during IPA pass: inline
prelude.cfa: In function ‘_X4mainFi___1’:
prelude.cfa:9:14: internal compiler error: in initialize_inlined_parameters, at tree-inline.c:3444
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.


forall( dtype T | sized(T) ) {
	struct S1 { T * oaddr; bool copy; };
}
forall( dtype T | sized(T) ) {
	T * $xalloc_internal(S1(T) in )		{ return 0p; }
	T * ?() (S1(T) in, char fill)		{ return $xalloc_internal( (S1(T)) {}); }
	S1(T) ?`fill(S1(T) in)				{ return (S1(T)){}; }
	S1(T) ?() (S1(T) in, size_t align)	{ return (S1(T)){}; }
	S1(T) ?`align(S1(T) in)				{ return (S1(T)){}; }
	S1(T) xalloc(size_t dim = 1)		{ return (S1(T)){}; }
}
int main() {
	int * ip = xalloc()`align(32)`fill('f');
	return 0;
}"	defect	new	major	prelude	1.0			
