Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #65739 > unrolled thread

Error messages

Started byjacobnavia <jacob@jacob.remcomp.fr>
First post2015-07-17 02:36 +0200
Last post2015-07-17 20:11 -0700
Articles 4 on this page of 64 — 22 participants

Back to article view | Back to comp.lang.c


Contents

  Error messages jacobnavia <jacob@jacob.remcomp.fr> - 2015-07-17 02:36 +0200
    Re: Error messages Richard Heathfield <rjh@cpax.org.uk> - 2015-07-17 01:51 +0100
      Re: Error messages Keith Thompson <kst-u@mib.org> - 2015-07-16 18:24 -0700
        Re: Error messages Lőrinczy Zsigmond <nospam@for.me> - 2015-07-17 09:31 +0200
          Re: Error messages Richard Heathfield <rjh@cpax.org.uk> - 2015-07-17 08:35 +0100
            Re: Error messages glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-07-17 09:11 +0000
              Re: Error messages Richard Heathfield <rjh@cpax.org.uk> - 2015-07-17 10:30 +0100
              Re: Error messages Ian Collins <ian-news@hotmail.com> - 2015-07-17 21:44 +1200
                Re: Error messages Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-07-17 12:55 +0100
                Re: Error messages Melzzzzz <mel@zzzzz.com> - 2015-07-17 19:53 +0200
                Re: Error messages glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-07-17 17:55 +0000
                  Re: Error messages James Kuyper <jameskuyper@verizon.net> - 2015-07-17 14:19 -0400
              Re: Error messages raltbos@xs4all.nl (Richard Bos) - 2015-07-19 21:44 +0000
          Re: Error messages gazelle@shell.xmission.com (Kenny McCormack) - 2015-07-17 07:38 +0000
            Re: Error messages Noob <root@127.0.0.1> - 2015-07-17 09:58 +0200
              Re: Error messages gazelle@shell.xmission.com (Kenny McCormack) - 2015-07-17 13:32 +0000
        Re: Error messages Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-07-18 11:13 +0100
    Re: Error messages James Kuyper <jameskuyper@verizon.net> - 2015-07-16 22:36 -0400
    Re: Error messages Reinhardt Behm <rbehm@hushmail.com> - 2015-07-17 13:05 +0800
      Re: Error messages jacobnavia <jacob@jacob.remcomp.fr> - 2015-07-17 09:48 +0200
        Re: Error messages David Kleinecke <dkleinecke@gmail.com> - 2015-07-17 19:23 -0700
          Re: Error messages Keith Thompson <kst-u@mib.org> - 2015-07-17 21:24 -0700
            Re: Error messages David Kleinecke <dkleinecke@gmail.com> - 2015-07-18 18:29 -0700
              Re: Error messages Keith Thompson <kst-u@mib.org> - 2015-07-18 20:59 -0700
                Re: Error messages David Kleinecke <dkleinecke@gmail.com> - 2015-07-19 19:22 -0700
              Re: Error messages David Brown <david.brown@hesbynett.no> - 2015-07-21 11:40 +0200
                Compiler conformance (Was: Error messages) gazelle@shell.xmission.com (Kenny McCormack) - 2015-07-21 11:40 +0000
                  Re: Compiler conformance Noob <root@127.0.0.1> - 2015-07-21 14:01 +0200
                    Re: Compiler conformance gazelle@shell.xmission.com (Kenny McCormack) - 2015-07-21 13:47 +0000
          Re: Error messages Reinhardt Behm <rbehm@hushmail.com> - 2015-07-18 13:38 +0800
      Re: Error messages Keith Thompson <kst-u@mib.org> - 2015-07-17 07:54 -0700
        Re: Error messages raltbos@xs4all.nl (Richard Bos) - 2015-07-19 22:00 +0000
          Re: Error messages Richard Damon <Richard@Damon-Family.org> - 2015-07-19 19:47 -0400
    Re: Error messages jacobnavia <jacob@jacob.remcomp.fr> - 2015-07-17 10:06 +0200
    Re: Error messages Bartc <bc@freeuk.com> - 2015-07-17 12:07 +0100
    Re: Error messages Noob <root@127.0.0.1> - 2015-07-17 13:14 +0200
      Re: Error messages Bartc <bc@freeuk.com> - 2015-07-17 12:40 +0100
    Re: Error messages gwowen <gwowen@gmail.com> - 2015-07-17 04:32 -0700
      Re: Error messages jacobnavia <jacob@jacob.remcomp.fr> - 2015-07-17 14:15 +0200
        Re: Error messages gwowen <gwowen@gmail.com> - 2015-07-17 05:25 -0700
          Re: Error messages Bartc <bc@freeuk.com> - 2015-07-17 13:34 +0100
            Re: Error messages Keith Thompson <kst-u@mib.org> - 2015-07-17 08:07 -0700
          Re: Error messages jacobnavia <jacob@jacob.remcomp.fr> - 2015-07-17 14:38 +0200
            Re: Error messages Martin Shobe <martin.shobe@yahoo.com> - 2015-07-17 08:50 -0500
              Re: Error messages jacobnavia <jacob@jacob.remcomp.fr> - 2015-07-17 16:08 +0200
                Re: Error messages Martin Shobe <martin.shobe@yahoo.com> - 2015-07-17 09:24 -0500
                  Re: Error messages James Kuyper <jameskuyper@verizon.net> - 2015-07-17 12:26 -0400
                    Re: Error messages Martin Shobe <martin.shobe@yahoo.com> - 2015-07-17 13:19 -0500
                      Re: Error messages James Kuyper <jameskuyper@verizon.net> - 2015-07-17 14:28 -0400
                        Re: Error messages James Kuyper <jameskuyper@verizon.net> - 2015-07-17 14:43 -0400
                          Re: Error messages Bartc <bc@freeuk.com> - 2015-07-17 20:31 +0100
                        Re: Error messages Martin Shobe <martin.shobe@yahoo.com> - 2015-07-18 08:41 -0500
                    Re: Error messages David Brown <david.brown@hesbynett.no> - 2015-07-21 12:25 +0200
                      Re: Error messages James Kuyper <jameskuyper@verizon.net> - 2015-07-21 13:20 -0400
                        Re: Error messages David Brown <david.brown@hesbynett.no> - 2015-07-22 00:05 +0200
            Re: Error messages Noob <root@127.0.0.1> - 2015-07-17 16:16 +0200
              Re: Error messages doctor@doctor.nl2k.ab.ca (The Doctor) - 2015-07-17 14:49 +0000
                Re: Error messages Noob <root@127.0.0.1> - 2015-07-17 20:02 +0200
                  Re: Error messages The Doctor <doctor@doctor.nl2k.ab.ca> - 2015-07-17 22:24 +0000
                    Re: Error messages Noob <root@127.0.0.1> - 2015-07-20 10:46 +0200
                      Re: Error messages doctor@doctor.nl2k.ab.ca (The Doctor) - 2015-07-20 14:59 +0000
            Re: Error messages Keith Thompson <kst-u@mib.org> - 2015-07-17 08:25 -0700
        Re: Error messages raltbos@xs4all.nl (Richard Bos) - 2015-07-19 22:07 +0000
    Re: Error messages Ed Prochak <edprochak@gmail.com> - 2015-07-17 20:11 -0700

Page 4 of 4 — ← Prev page 1 2 3 [4]


#65997

Fromdoctor@doctor.nl2k.ab.ca (The Doctor)
Date2015-07-20 14:59 +0000
Message-ID<moj2bq$ec6$1@ns2.nl2k.ab.ca>
In reply to#65961
In article <moicf5$gl7$1@dont-email.me>, Noob  <root@127.0.0.1> wrote:
>On 18/07/2015 00:24, "The Doctor" wrote:
>
>> egcs, no wonder it was abandoned long ago.
>
>AFAICT, egcs lives on...
>
>What is called gcc (as in "GNU Compiler Collection") is, in fact,
>the descendant of egcs -- which was itself a branch of gcc (as in
>the original "GNU C Compiler").
>
>https://gcc.gnu.org/wiki/History
>
>https://en.wikipedia.org/wiki/GNU_Compiler_Collection#History
>
>> EGCS development proved considerably more vigorous than GCC
>> development, so much so that the FSF officially halted development on
>> their GCC 2.x compiler, blessed EGCS as the official version of GCC
>> and appointed the EGCS project as the GCC maintainers in April 1999.
>> With the release of GCC 2.95 in July 1999 the two projects were once
>> again united.
>
>Regards.
>

ECGS, CLang what else is there?
-- 
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
God,Queen and country!Never Satan President Republic!Beware AntiChrist rising! 
http://www.fullyfollow.me/rootnl2k  Look at Psalms 14 and 53 on Atheism
Abuse a man unjustly, and you will make friends for him.  -Edgar Watson Howe

[toc] | [prev] | [next] | [standalone]


#65787

FromKeith Thompson <kst-u@mib.org>
Date2015-07-17 08:25 -0700
Message-ID<lny4ieiz5l.fsf@kst-u.example.com>
In reply to#65776
jacobnavia <jacob@jacob.remcomp.fr> writes:
> Le 17/07/2015 14:25, gwowen a écrit :
>> On Friday, July 17, 2015 at 1:15:58 PM UTC+1, jacobnavia wrote:
>>> Le 17/07/2015 13:32, gwowen a écrit :
>>>> On Friday, July 17, 2015 at 1:36:54 AM UTC+1, jacobnavia wrote:
>>>>> This will cost me around 1 day development, and 1 day testing. Is that
>>>>> still possible for gcc and c++?
>>>>
>>>> I think its already been done!
>>>
>>> Then why do not do it for C++?
>>
>> Huh?
>>
>>> You see?
>>
>> No.
>>
>> foo.cpp:3:3: error: 'TYPE' was not declared in this scope
>>     TYPE t;
>>     ^
>>
>> seems pretty unambiguous to me.
>>
>
> This whole discussion started with "Doctor" telling us that gcc wrote:
>
> /usr/source/mysql-5.6.25/sql/filesort_utils.cc:178: parse error before 
>  >' token
>
> See thread "SQL filesortcc question"

That would have been easier to see if you hadn't (a) started a new
thread that doesn't link to the original post, and (b) used a much
simpler example that's already handled reasonably well by both gcc and
g++.

> Apparently gcc does it for C, but for C++ it is not possible.

The example that produced the parse error involved C++ templates,
something that doesn't exist in C.

C++ templates do indeed lead to confusing error messages in some cases.
Producing more meaningful error messages would certainly be useful (for
C++ programmers), but it's not applicable to C.  It's great that you've
improved an error message in your C compiler, but it's not directly
related to the problem The Doctor was having.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

[toc] | [prev] | [next] | [standalone]


#65938

Fromraltbos@xs4all.nl (Richard Bos)
Date2015-07-19 22:07 +0000
Message-ID<55ac1eea.7699078@news.xs4all.nl>
In reply to#65773
jacobnavia <jacob@jacob.remcomp.fr> wrote:

> Le 17/07/2015 13:32, gwowen a écrit :
> > On Friday, July 17, 2015 at 1:36:54 AM UTC+1, jacobnavia wrote:
> >> This will cost me around 1 day development, and 1 day testing. Is that
> >> still possible for gcc and c++?
> >
> > I think its already been done!
> 
> Then why do not do it for C++?

Who cares? It's C++, this is comp.lang.c. Make your C implementation
return a good warning message - and you have! - and let C++ fend for
itself. If you want to criticise C++, do it in comp.lang.c++, not here.

Besides, you can't blame C++ (however much I might want to...) for what
one particular implementation of it chooses to do. If you want to
criticise _that_, do it in... I dunno, some SourceForge forum, probably.

> You see?

I see you're again seeing personal insults where none were present.

Not everybody is out to annoy you specifically, least of all GCC++.

You've done your bit (and this time, yes, I commend you for it!) - leave
other people's bits to them.

Richard

[toc] | [prev] | [next] | [standalone]


#65826

FromEd Prochak <edprochak@gmail.com>
Date2015-07-17 20:11 -0700
Message-ID<22cc81cf-e648-4884-b2ec-e05951c28339@googlegroups.com>
In reply to#65739
On Thursday, July 16, 2015 at 8:36:54 PM UTC-4, jacobnavia wrote:
> When missing an include file, c++ emits a parse error.
> 
> When I complained about it, people told me that lcc-win stops with a 
> "syntax error" what is barely better.
> 
Writing error messages in actually much more difficult that you may expect, in compilers and in applications. It is very difficult to write a message that presents the error in the context of the user instead of the programmer of the compiler or application.

I'm not saying it is impossible, just very difficult (especially considering a wide range of end users from novices to experts.

Sometimes you just have to shrug and move on.

[toc] | [prev] | [standalone]


Page 4 of 4 — ← Prev page 1 2 3 [4]

Back to top | Article view | comp.lang.c


csiph-web