------- Comment #3 from pinskia at physics dot uc dot edu 2006-09-03 19:41 ------- Subject: Re: New: Unusable error message when using a conditional-expression with multiple type arguments
On Sun, 2006-09-03 at 19:35 +0000, lindevel at gmx dot net wrote: > assert_testcase.cpp: In function ‘int main()’: > assert_testcase.cpp:16: error: ‘debug(((const char*)"Some > string"))’ has type ‘void’ and is not a > throw-expression That says to me that the expression `debug("Some string")' has a type of void (and is not a throw expression) which is invalid for ?: if the other type is not void. I don't see where the problem is. A throw expression is valid (here by the C++ standard) even though it has a expression type of void. -- Pinski -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28943