public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/31983]  New: Add option to gcc to display specific language manual section reference for error/warning encountered.
@ 2007-05-18  0:03 jamesodhunt at gmail dot com
  2007-05-18  0:13 ` [Bug c/31983] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: jamesodhunt at gmail dot com @ 2007-05-18  0:03 UTC (permalink / raw)
  To: gcc-bugs

As a supplement to the -- by necessity -- terse error messages generated by
gcc, it would be fantastic (IMHO) if a new option could be added to gcc to
display the current language standard along with the _section_ in that standard
that the error applies to.

IE, rather than...

hello.c:1:10: error: #include expects "FILENAME" or <FILENAME>

We could have:

hello.c:1:10:c99:1.2.3.4: error: #include expects "FILENAME" or <FILENAME>

Where section 1.2.3.4 in the c99 standard might explain the syntax of includes.

This isn't a particularly good example, but some of gcc's warning and error
messages are cryptic enough that a pointer to the actual language specification
could be very useful for some people.

Alternatively, or in combination, gcc could provide references to more
widely-available sources (such as K&R and H&S for C, and Stroustrup or the ARM
for C++ for example).

As another alternative, how about referencing gcc test cases to help the
developer understand the problem?

Thanks for reading.

James.


-- 
           Summary: Add option to gcc to display specific language manual
                    section reference for error/warning encountered.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jamesodhunt at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31983


^ permalink raw reply	[flat|nested] 15+ messages in thread
[parent not found: <bug-31983-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-05-10 10:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-18  0:03 [Bug c/31983] New: Add option to gcc to display specific language manual section reference for error/warning encountered jamesodhunt at gmail dot com
2007-05-18  0:13 ` [Bug c/31983] " pinskia at gcc dot gnu dot org
2007-05-18  2:27 ` fang at csl dot cornell dot edu
2007-05-18 13:17 ` manu at gcc dot gnu dot org
2007-05-21  1:52 ` pinskia at gcc dot gnu dot org
2008-05-06 18:00 ` esigra at gmail dot com
2008-05-06 18:22 ` pinskia at gcc dot gnu dot org
2008-05-06 18:48 ` esigra at gmail dot com
2008-05-07 10:07 ` manu at gcc dot gnu dot org
2008-05-07 13:09 ` esigra at gmail dot com
2008-05-08 10:45 ` manu at gcc dot gnu dot org
2008-09-03  2:44 ` pinskia at gcc dot gnu dot org
2008-09-21 20:39 ` esigra at gmail dot com
2008-12-24 23:16 ` pinskia at gcc dot gnu dot org
     [not found] <bug-31983-4@http.gcc.gnu.org/bugzilla/>
2011-05-10 10:05 ` manu at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).