Re: [C++ RFC] magic_varargs_p issues (PR c++/70144)

2016-03-10 Thread Jakub Jelinek
On Wed, Mar 09, 2016 at 06:18:31PM +0100, Jakub Jelinek wrote: > So, what approach do you prefer? I've so far bootstrapped/regtested the > second patch, which showed those > +FAIL: g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.cc > +UNRESOLVED: g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.cc > +FAIL:

[C++ RFC] magic_varargs_p issues (PR c++/70144)

2016-03-09 Thread Jakub Jelinek
Hi! The following testcase results in ICE in C++, while is properly rejected in C. The problem is that the C++ FE treats some varargs builtins as magic and doesn't perform any conversion on their args. The first patch is just minimal, just ensures that we reject the builtins without library