Skip to content
Snippets Groups Projects
Commit a28046e2 authored by Gerald Pfeifer's avatar Gerald Pfeifer
Browse files

doc: Remove dubious example around bug reporting

gcc:
	* doc/bugreport.texi (Bug Criteria): Remove dubious example.
parent 24cb586c
No related branches found
No related tags found
No related merge requests found
...@@ -50,11 +50,6 @@ However, you must double-check to make sure, because you may have a ...@@ -50,11 +50,6 @@ However, you must double-check to make sure, because you may have a
program whose behavior is undefined, which happened by chance to give program whose behavior is undefined, which happened by chance to give
the desired results with another C or C++ compiler. the desired results with another C or C++ compiler.
For example, in many nonoptimizing compilers, you can write @samp{x;}
at the end of a function instead of @samp{return x;}, with the same
results. But the value of the function is undefined if @code{return}
is omitted; it is not a bug when GCC produces different results.
Problems often result from expressions with two increment operators, Problems often result from expressions with two increment operators,
as in @code{f (*p++, *p++)}. Your previous compiler might have as in @code{f (*p++, *p++)}. Your previous compiler might have
interpreted that expression the way you intended; GCC might interpreted that expression the way you intended; GCC might
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment