﻿id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc
195	Unnecessary dereference leads to segfault [from ticket #70]	Thierry Delisle		"{{{
forall( dtype T | sized(T) ) T * foo( void ) {
	printf( ""foo1\n"" );
	return (T *)0;
}
forall( dtype T | sized(T) ) T & foo( void ) {
	printf( ""foo2\n"" );
	return (T &)*(T *)0;
}
int main( void ) {
    int * i;
    int & j;

    i = foo();  // correctly calls foo1
    &j = foo();  // incorrectly calls foo1 instead of foo2
}
}}}

This leads to a segfault from a null ptr that should never be dereferenced"	defect	new	major	cfa-cc	1.0			
