[Bug libstdc++/29063] New: valarray does not undefine all temp macros

2006-09-13 Thread lidaobing at gmail dot com
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.0.4 20060904 (prerelease) (Debian 4.0.3-7)


-- 
   Summary: valarray does not undefine all temp macros
   Product: gcc
   Version: 4.0.4
Status: UNCONFIRMED
  Severity: minor
  Priority: P3
 Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lidaobing at gmail dot com


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



[Bug c/30368] New: wrong result

2007-01-04 Thread lidaobing at gmail dot com
for the following example[1], it should exit with 0, but under gcc-4.0 gcc-4.1
gcc-4.2 and all optimize level(-O0, -O1, -O2, -O3), it exit with 1;

check gcc versions in [2]

[1]
/*  begin */
struct A { int b; };

int main(int argc, char **argv)
{
struct A* a = 0;
if (&a->b) return 1;
return 0;
}
/* end */

[2] 
gcc version 4.0.4 20060904 (prerelease) (Debian 4.0.3-7)
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
gcc version 4.2.0 20061003 (experimental) (Debian 4.2-20061003-1)


-- 
   Summary: wrong result
   Product: gcc
   Version: 4.0.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lidaobing at gmail dot com


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



[Bug c/30368] wrong result

2007-01-04 Thread lidaobing at gmail dot com


--- Comment #1 from lidaobing at gmail dot com  2007-01-04 14:25 ---
orignal reported by RoachCock in newsmth.net BBS


-- 


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



[Bug c++/30725] New: compile error when meet with ((A()()))

2007-02-06 Thread lidaobing at gmail dot com
following example file can't compiled

$ cat bug.cpp 
class A{
public:
  bool operator()() const {
return true;
  }
};

int main() {
  if ((A()())) {}
}
$ g++-4.1 -c bug.cpp
bug.cpp: In function ‘int main()’:
bug.cpp:9: error: ‘type name’ declared as function returning a function
bug.cpp:9: error: ‘type name’ declared as function returning a function
$ g++-4.1 --version
g++-4.1 (GCC) 4.1.2 20061212 (prerelease) (Ubuntu 4.1.1-21ubuntu3)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


-- 
   Summary: compile error when meet with ((A()()))
   Product: gcc
   Version: 4.1.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lidaobing at gmail dot com


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



[Bug c++/30725] compile error when meet with ((A()()))

2007-02-06 Thread lidaobing at gmail dot com


--- Comment #3 from lidaobing at gmail dot com  2007-02-07 05:13 ---


*** This bug has been marked as a duplicate of 29234 ***

*** This bug has been marked as a duplicate of 29234 ***


-- 

lidaobing at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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



[Bug c++/29234] Call to operator() of temporary object wrongly parsed

2007-02-06 Thread lidaobing at gmail dot com


--- Comment #2 from lidaobing at gmail dot com  2007-02-07 05:13 ---
*** Bug 30725 has been marked as a duplicate of this bug. ***


-- 


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



[Bug fortran/36103] gfortran crash with zh_CN locale - error_print error ?

2008-05-02 Thread lidaobing at gmail dot com


--- Comment #14 from lidaobing at gmail dot com  2008-05-02 18:50 ---
an updated zh_CN.po uploaded to TP[1], please help check whether it can fix
this bug.

PS. in emacs's po-mode, po-validate does not warning in this case, any script
to check this po file?

thanks.

[1] http://translationproject.org/PO-files/zh_CN/gcc-4.3.0.zh_CN.po


-- 


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



[Bug fortran/36103] gfortran crash with zh_CN locale - error_print error ?

2008-05-03 Thread lidaobing at gmail dot com


--- Comment #16 from lidaobing at gmail dot com  2008-05-03 12:42 ---
Created an attachment (id=15567)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15567&action=view)
new zh_CN.po, compressed by bzip2


-- 


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



[Bug fortran/36103] gfortran crash with zh_CN locale - error_print error ?

2008-05-03 Thread lidaobing at gmail dot com


--- Comment #17 from lidaobing at gmail dot com  2008-05-03 12:47 ---
an updated (again) zh_CN.po uploaded to TP[1], and also in attachment[2], it
really protect my gfotran-4.3 from crash, I hope it can works for you.

please help check whether it works for you?

thanks.

[1] http://translationproject.org/PO-files/zh_CN/gcc-4.3.0.zh_CN.po
[2] http://gcc.gnu.org/bugzilla/attachment.cgi?id=15567


-- 


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



[Bug fortran/36103] gfortran crash with zh_CN locale - error_print error ?

2008-05-03 Thread lidaobing at gmail dot com


--- Comment #21 from lidaobing at gmail dot com  2008-05-03 14:36 ---
Created an attachment (id=15570)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15570&action=view)
2nd zh_CN.po, compressed by bzip2

fix almost all the warning by check_po.

I don't know the grammer of error_print, but I think the following two places
are valid. am I right?

thanks.

$ ./check_po gcc-4.3.0.zh_CN.po
ERROR: Cannot combine '%' with %n$
  msgid  ISO C forbids passing argument %d of %qE between function pointer and
%
  msgstr ISO C 不允许将%2$qE的第 %1$d
个实参在函数指针和%间传递

ERROR: Cannot combine '%' with %n$
  msgid  converting % to pointer type for argument %P of %qD
  msgstr
将%转换为指向%2$qD的实参
%1$P 的指针类型


-- 

lidaobing at gmail dot com changed:

   What|Removed |Added

  Attachment #15567|0   |1
is obsolete||


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



[Bug fortran/36103] gfortran crash with zh_CN locale - error_print error ?

2008-05-03 Thread lidaobing at gmail dot com


--- Comment #22 from lidaobing at gmail dot com  2008-05-03 14:46 ---
Created an attachment (id=15572)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15572&action=view)
check_po log for all .mo files in debian gcc-4.3-locales package

debian gcc-4.3-locales version is 4.3.0-3

and I use following command to generate the log file

for f in `dpkg -L gcc-4.3-locales | grep gcc-4.3.mo`; do echo $f; msgunfmt $f >
1.po; ./check_po 1.po; echo; done > check_po.log


-- 


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



[Bug c/25575] New: some uninitialized warning disappear when compile without -O

2005-12-27 Thread lidaobing at gmail dot com
Hello,

see example:

>
$ cat warning.c
int main()
{
  int i;
  return i;
}
$ gcc -Wall warning.c
$ gcc -Wall -O0 warning.c
$ gcc -Wall -O warning.c
warning.c: In function ‘main’:
warning.c:4: warning: ‘i’ is used uninitialized in this function
warning.c
$ gcc -Wall -O1 warning.c
warning.c: In function ‘main’:
warning.c:4: warning: ‘i’ is used uninitialized in this function
$ gcc -Wall -O2 warning.c
warning.c: In function ‘main’:
warning.c:4: warning: ‘i’ is used uninitialized in this function
$ gcc -Wall -O3 warning.c
warning.c: In function ‘main’:
warning.c:4: warning: ‘i’ is used uninitialized in this function
$
<--


-- 
   Summary: some uninitialized warning disappear when compile
without -O
   Product: gcc
   Version: 4.0.2
Status: UNCONFIRMED
  Severity: minor
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lidaobing at gmail dot com


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



[Bug c++/23975] New: do not optimize for a 'const double'

2005-09-19 Thread lidaobing at gmail dot com
g++-4.0 did not optimize const double as a const, it put it in BSS. This bug
does not exist in g++-3.4, it also exist in g++-4.1.

The versions:
g++-3.4: gcc version 3.4.5 20050821 (prerelease) (Debian 3.4.4-8)
g++-4.0: gcc version 4.0.2 20050913 (prerelease) (Debian 4.0.1-7)
g++-4.1(gcc-snapshot): gcc version 4.1.0 20050904 (experimental)

$ cat const.cpp
//const.cpp

extern const double minute;

const double second = 1.0;
const double minute = 60.0 * second;
$ g++-3.4 -c const.cpp; nm const.o
 R minute
0008 r second
$ g++-3.4 -c -O3 const.cpp; nm const.o
 R minute
$ g++-4.0 -c const.cpp; nm const.o
0032 t _GLOBAL__I_minute
 B minute
 r second
 t _Z41__static_initialization_and_destruction_0ii
$ g++-4.0 -c -O3 const.cpp; nm const.o
0030 t _GLOBAL__I_minute
 B minute
 r second
 t _Z41__static_initialization_and_destruction_0ii
$ /usr/lib/gcc-snapshot/bin/g++ -c const.cpp && nm const.o | c++filt
0032 t global constructors keyed to minute
 B minute
0008 r second
 t __static_initialization_and_destruction_0(int, int)
$ /usr/lib/gcc-snapshot/bin/g++ -c -O3 const.cpp && nm const.o | c++filt
0030 t global constructors keyed to minute
 B minute
 t __static_initialization_and_destruction_0(int, int)

-- 
   Summary: do not optimize for a 'const double'
   Product: gcc
   Version: 4.0.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lidaobing at gmail dot com
CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-linux-gnu
  GCC host triplet: i686-linux-gnu
GCC target triplet: i686-linux-gnu


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


[Bug c++/23975] do not optimize for a 'const double'

2005-09-20 Thread lidaobing at gmail dot com


-- 
   What|Removed |Added

  Known to fail||4.1.0
  Known to work||2.95.4 3.3.5 3.4.5


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


[Bug c++/23975] do not optimize for a 'const double'

2005-09-20 Thread lidaobing at gmail dot com

--- Additional Comments From lidaobing at gmail dot com  2005-09-20 07:04 
---
See also Debian bug #328939
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=328939

-- 


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