Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above).

2020-08-07 Thread Vincent Lefevre
On 2020-08-07 16:44:16 -0700, Paul Eggert wrote: > On 8/7/20 1:01 PM, Vincent Lefevre wrote: > > The program > > > > int main(void) > > { > >return 0; > > } > > > > compiles fine with g++, even using "-std=c++17 -pedantic". > > I expect the problem was with non-GNU C++ compilers, not with g+

Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above).

2020-08-07 Thread Paul Eggert
On 8/7/20 1:01 PM, Vincent Lefevre wrote: The program int main(void) { return 0; } compiles fine with g++, even using "-std=c++17 -pedantic". I expect the problem was with non-GNU C++ compilers, not with g++. However, I'm not the C++ guy so I'm the wrong person to ask about the details. Y

Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above).

2020-08-07 Thread Vincent Lefevre
On 2020-08-06 18:50:33 -0700, Paul Eggert wrote: > For what it's worth, I count 13 instances of 'int main (void) { ... }' in > Gnulib code, and 136 instances of 'int main () { ... }'. As I recall, the > latter is for C++ compatibility, which I guess is not an issue with MPFR. I don't understand wh