diff options
| author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-04 20:24:47 +0000 |
|---|---|---|
| committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-04 20:24:47 +0000 |
| commit | f12bbceaaf4f49ad3c6a811ce37114e06ea0c0a9 (patch) | |
| tree | 2567f0aeb248a1dfe2ec2ed66cb3e6dea2170457 /gcc | |
| parent | 323f7906ec9ee393e9f2810acb1724d3c73a853c (diff) | |
| download | ppe42-gcc-f12bbceaaf4f49ad3c6a811ce37114e06ea0c0a9.tar.gz ppe42-gcc-f12bbceaaf4f49ad3c6a811ce37114e06ea0c0a9.zip | |
Minor tweaks
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35493 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/extend.texi | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/gcc/extend.texi b/gcc/extend.texi index 8d047f664fc..4a8c87c2d73 100644 --- a/gcc/extend.texi +++ b/gcc/extend.texi @@ -203,7 +203,7 @@ handled. For example: does not work the same way as: @example -inline int foo(a) @{ int b = a; return b + 3; @} +inline int foo(int a) @{ int b = a; return b + 3; @} @end example @noindent @@ -213,19 +213,9 @@ run earlier in the case of the macro than in the case of the function. These considerations mean that it is probably a bad idea to use statement-expressions of this form in header files that are designed to -work with C++. Note that the GNU C Library does contain header files -using statement-expressions, and that these definitions make the library -technically non-conforming. For example, when optimization is turned -on, - -@example -string a, b; -printf("%c", toupper((a+b).c_str()[0])); -@end example - -@noindent -will result in the destructor for the temporary created for @code{a+b} -being run earlier than it should be. +work with C++. (Note that some versions of the GNU C Library contained +header files using statement-expression that lead to precisely this +bug.) @node Local Labels @section Locally Declared Labels |

