This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

expected '=', ',', ';', 'asm' or '__attribute__' before 'foo'


Hi,

may I propose to change this message to a more user-friendly one?

In most cases, the message is triggered by a typo like here:

Int foo (void)
{
    return 1;
}

A message like

error: expected '=', ',', ';', 'asm' or '__attribute__' before 'foo'

is just pain to the eyes, and apart from that it is not more helpful than a simple "syntax error before 'foo':

In many cases -- like above -- the user neither wants a = nor a , nor a ; nor asm nor __attribute__.

Maybe a message like "'Int' before 'foo' is not legitimate here" is more appropriate and eye-friendly?.

English speakers will surely find something more pleasant, but IMHO almost anything will be better than expected '=', ',', ';', 'asm' or '__attribute__'

Regards, Johann


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]