Re: gcc 4.7 regression on bool function specialization

2013-01-19 Thread Jonathan Wakely
N.B. This mail is not appropriate on this mailing list, which is for discussion of development of GCC. For help with GCC use the gcc-help list or to report bugs use bugzilla, thanks. On 19 January 2013 18:58, Jason A. Donenfeld wrote: > /* > * > * The output of this with gcc 4.7.2 is: > * > *

gcc 4.7 regression on bool function specialization

2013-01-19 Thread Jason A. Donenfeld
/* * * The output of this with gcc 4.7.2 is: * * 1 * 2 * this generic-int function should not be called * 0 * * * * The output of this with gcc 4.6.3 is: * * 1 * 2 * this type-bool function SHOULD BE called * 1 * */ #include #include #include #include struct Type { int dummy