diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-08-04 20:24:47 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-08-04 20:24:47 +0000 |
commit | 54e1d3a6a9dd0caab503807de6fb85ae1a1db0de (patch) | |
tree | 2567f0aeb248a1dfe2ec2ed66cb3e6dea2170457 /gcc | |
parent | c1194d740388113a485bd42652d40d4e901152ee (diff) | |
download | gcc-54e1d3a6a9dd0caab503807de6fb85ae1a1db0de.zip gcc-54e1d3a6a9dd0caab503807de6fb85ae1a1db0de.tar.gz gcc-54e1d3a6a9dd0caab503807de6fb85ae1a1db0de.tar.bz2 |
Minor tweaks
From-SVN: r35493
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 8d047f6..4a8c87c 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 |