Re: Passsing unfinished types to gen_type_die_with_usage

2015-05-15 Thread Jason Merrill
On 05/14/2015 10:29 AM, Jan Hubicka wrote: Is it expected & safe for dwarf2out to process unfinished types? Yes, they are treated as an incomplete forward declaration. It seems to me that we may wan to delay rest_of_type_compilation for time the contexts are finished, to.. I wouldn't compl

if-else-if chains to switch conversion optimization

2015-05-15 Thread Daniel Gutson
Hi, the particular motivation is a TMP compile-time search of an element, but could be extended to other scenarios. In my example, given: template struct Static_Find { static size_t find(size_t /*target*/) { return 0; } }; template struct Static_Find { static size_t