[Bug c++/45145] New: printing tabs fails strangely

2010-07-30 Thread allcock at math dot utexas dot edu
This should print 100 numbers separated by tabs, then 100 x's separated by
spaces, then 100 x's separated by tabs, then 100 0's (int not char) separated
by tabs. But the last two print fewer than 100--only one line of them.

g++ -v -O0 -Wall --save-temps bug.cc
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5659~1/src/configure --disable-checking
--enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib
--build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10-
--host=x86_64-apple-darwin10 --target=i686-apple-darwin10
--with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5659)
 /usr/libexec/gcc/i686-apple-darwin10/4.2.1/cc1plus -E -quiet -v -imultilib
x86_64 -D__DYNAMIC__ bug.cc -fPIC -mmacosx-version-min=10.6.4 -m64 -mtune=core2
-Wall -O0 -fpch-preprocess -D__private_extern__=extern -o bug.ii
ignoring nonexistent directory
"/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../../i686-apple-darwin10/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/4.2.1
 /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64
 /usr/include/c++/4.2.1/backward
 /usr/local/include
 /usr/lib/gcc/i686-apple-darwin10/4.2.1/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
 /usr/libexec/gcc/i686-apple-darwin10/4.2.1/cc1plus -fpreprocessed bug.ii -fPIC
-quiet -dumpbase bug.cc -mmacosx-version-min=10.6.4 -m64 -mtune=core2 -auxbase
bug -O0 -Wall -version -D__private_extern__=extern -o bug.s
GNU C++ version 4.2.1 (Apple Inc. build 5659) (i686-apple-darwin10)
compiled by GNU C version 4.2.1 (Apple Inc. build 5659).
GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=131072
Compiler executable checksum: d1de7f2cb6246ecf28813a5aea73d6f2
 /usr/libexec/gcc/i686-apple-darwin10/4.2.1/as -arch x86_64
-force_cpusubtype_ALL -o bug.o bug.s
 /usr/libexec/gcc/i686-apple-darwin10/4.2.1/collect2 -dynamic -arch x86_64
-macosx_version_min 10.6.4 -weak_reference_mismatches non-weak -o a.out
-lcrt1.10.6.o -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64
-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64
-L/usr/lib/i686-apple-darwin10/4.2.1 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1
-L/usr/lib/gcc/i686-apple-darwin10/4.2.1
-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../i686-apple-darwin10/4.2.1
-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../.. bug.o -lstdc++ -lSystem -lgcc
-lSystem


-- 
   Summary: printing tabs fails strangely
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
    ReportedBy: allcock at math dot utexas dot edu


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



[Bug c++/45145] printing tabs fails strangely

2010-07-30 Thread allcock at math dot utexas dot edu


--- Comment #1 from allcock at math dot utexas dot edu  2010-07-30 17:33 
---
Created an attachment (id=21361)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21361&action=view)
preprocessed version of 20-line c++ file exhibiting bug


-- 


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