ISO/ IEC JTC1/SC22/WG14 N722

ISO/IEC JTC1/SC22/WG14 N722

                    Removing implicit int - further lacunae
                          Clive D.W. Feather


Abstract
========

This paper addresses further lacunae in the removal of implicit int.


Proposal
========

In 6.7.1 paragraph 1, change

    function-definition:
        declaration-specifiers[opt] declarator declaration-list[opt]
        compound-statement

to

    function-definition:
 |      declaration-specifiers declarator declaration-list[opt]
        compound-statement

as at least one specifier (for the type) is needed.

Make the same change in B.2.4.

In 6.7.1 example 2, change the definitions of "g" by adding "void" at
the start:

    void g(int (*funcp)(void))

and:

    void g(int func(void))