This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: help!!
- From: Phil Edwards <phil at jaj dot com>
- To: Nicole Nails <nnails at palm dot net>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
- Date: Mon, 17 Jun 2002 16:04:52 -0400
- Subject: Re: help!!
- References: <20020617195757.13842.qmail@uwdvg001.cms.usa.net>
Please don't send HTML email; more information is at gcc.gnu.org/lists.html
On Mon, Jun 17, 2002 at 07:57:57PM -0000, Nicole Nails wrote:
> I need though a list of all
> possible errors the GNU compiler will detect when a student is attempting to
> compile and/or run a program.
In theory, anywhere the language rules say that a compiler must detect an
error, we do so.
For an exact list, look through the GCC source code for calls to the
functions named "warning" and "error".
Be aware that there are many mistakes in C and C++ that compilers cannot
detect, or are not required to detect. Beginning students should probably
use flags like
-Wall -W -pedantic
while learning the language.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams