[Bug c++/33925] gcc -Waddress lost some useful warnings

2009-07-31 Thread mec at google dot com
--- Comment #3 from mec at google dot com 2009-07-31 16:04 --- Subject: Re: gcc -Waddress lost some useful warnings Yes, I think this is a bug, because the behavior of gcc doesn't match its documentation. First, I think the C++ standard forbids a function from having a null address

[Bug c++/35927] New: befriending a whole template in another namespace fails

2008-04-13 Thread mec at google dot com
at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35927

[Bug preprocessor/33143] preprocess should ignore trigraphs in /* */ comments

2008-04-04 Thread mec at google dot com
--- Comment #5 from mec at google dot com 2008-04-04 16:36 --- Doh! You are right, I was confused when I read z1.cc:2:4 as an error on line 4. Both errors are in line 2, inside the #if block. Sorry for the noise. -- mec at google dot com changed: What|Removed

[Bug c++/33925] New: gcc -Waddress lost some useful warnings

2007-10-27 Thread mec at google dot com
at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33925

[Bug c++/33916] New: Default constructor fails to initialize array members

2007-10-26 Thread mec at google dot com
to initialize array members Product: gcc Version: 4.2.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686

[Bug c++/33752] New: gcc forgets about noreturn in this code

2007-10-12 Thread mec at google dot com
Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi

[Bug c++/33752] gcc forgets about noreturn in this code

2007-10-12 Thread mec at google dot com
--- Comment #1 from mec at google dot com 2007-10-12 16:08 --- Created an attachment (id=14349) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14349action=view) Test program Compile with: g++ -Wall -c z4.cc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33752

[Bug c++/33515] Inconsistent warning about defined but not used

2007-09-21 Thread mec at google dot com
--- Comment #2 from mec at google dot com 2007-09-21 05:59 --- Created an attachment (id=14237) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14237action=view) Test program Compile with: gcc -Wall -S z3.cc This program does give a warning about a1 defined-but-not-used. I believe

[Bug c++/33514] New: Inconsistent warning for compile-time integer overflow

2007-09-20 Thread mec at google dot com
: Inconsistent warning for compile-time integer overflow Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot

[Bug c++/33514] Inconsistent warning for compile-time integer overflow

2007-09-20 Thread mec at google dot com
--- Comment #1 from mec at google dot com 2007-09-21 05:28 --- Created an attachment (id=14235) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14235action=view) Test program Compile with: gcc -Wall -S z5.cc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33514

[Bug c++/33515] New: Inconsistent warning about defined but not used

2007-09-20 Thread mec at google dot com
Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org

[Bug c++/33515] Inconsistent warning about defined but not used

2007-09-20 Thread mec at google dot com
--- Comment #1 from mec at google dot com 2007-09-21 05:58 --- Created an attachment (id=14236) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14236action=view) Test program compile with: gcc -Wall -S z2.cc This program does not give a warning about a1 defined-but-not-used. I

[Bug c++/10541] [DR 354] Is NULL a valid pointer-type template argument?

2007-09-03 Thread mec at google dot com
--- Comment #8 from mec at google dot com 2007-09-03 15:47 --- DR 354 has been in state WP since October 2005. Is that good enough to unsuspend this issue? http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#354 -- mec at google dot com changed: What

[Bug preprocessor/33143] New: preprocess should ignore trigraphs in /* */ comments

2007-08-21 Thread mec at google dot com
ignore trigraphs in /* */ comments Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC

[Bug preprocessor/33143] preprocess should ignore trigraphs in /* */ comments

2007-08-21 Thread mec at google dot com
--- Comment #1 from mec at google dot com 2007-08-22 00:35 --- Created an attachment (id=14093) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14093action=view) C++ source file with trigraphs in comments and #if 0 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33143

[Bug c++/33124] C++ frontend should not warn about new a[0] in template context

2007-08-20 Thread mec at google dot com
--- Comment #2 from mec at google dot com 2007-08-20 19:31 --- new T[0] looks like defined behavior to me. [expr.new] 5.3.4 -7- When the value of the expression in a direct-new-declarator is zero, the allocation function is called to allocate an array with no elements. The pointer

[Bug c++/32735] New: i686 sse2 generates more movdqa than necessary

2007-07-11 Thread mec at google dot com
. -- Summary: i686 sse2 generates more movdqa than necessary Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google

[Bug c++/32735] i686 sse2 generates more movdqa than necessary

2007-07-11 Thread mec at google dot com
--- Comment #1 from mec at google dot com 2007-07-12 01:30 --- Created an attachment (id=13894) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13894action=view) Test program -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32735

[Bug c++/32735] i686 sse2 generates more movdqa than necessary

2007-07-11 Thread mec at google dot com
--- Comment #2 from mec at google dot com 2007-07-12 01:31 --- Created an attachment (id=13895) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13895action=view) Generated code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32735

[Bug c++/32735] i686 sse2 generates more movdqa than necessary

2007-07-11 Thread mec at google dot com
--- Comment #3 from mec at google dot com 2007-07-12 01:33 --- Created an attachment (id=13896) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13896action=view) Assembly code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32735

[Bug c++/32735] i686 sse2 generates more movdqa than necessary

2007-07-11 Thread mec at google dot com
--- Comment #4 from mec at google dot com 2007-07-12 01:33 --- Created an attachment (id=13897) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13897action=view) Assembly code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32735

[Bug c/32528] New: -save-temps when compiling standard input fails

2007-06-27 Thread mec at google dot com
Status: UNCONFIRMED Severity: trivial Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc

[Bug middle-end/32327] [4.2 Regression] Incorrect stack sharing causing removal of live code

2007-06-15 Thread mec at google dot com
--- Comment #22 from mec at google dot com 2007-06-15 13:15 --- With the test program, gcc 4.1.2 generates correct code and gcc 4.2.0 generates wrong code. Can someone increase the priority and severity of this PR? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32327

[Bug c++/32158] uninitialized_fill compile failure if no default assignment operator

2007-06-04 Thread mec at google dot com
--- Comment #12 from mec at google dot com 2007-06-04 13:35 --- Verified with my two test programs with snapshot gcc-4.3-20070601. Thanks for the fast fix! -- mec at google dot com changed: What|Removed |Added

[Bug libstdc++/32208] New: Patch for 32158 has bad code in std::vector::_M_fill_initialize

2007-06-04 Thread mec at google dot com
Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug libstdc++/32158] New: uninitialized_fill compile failure if no default assignment operator

2007-05-30 Thread mec at google dot com
Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC

[Bug c++/32158] uninitialized_fill compile failure if no default assignment operator

2007-05-30 Thread mec at google dot com
--- Comment #7 from mec at google dot com 2007-05-30 23:01 --- I think the problem is independent of __is_pod. The new std::uninitialized_fill has an if statement, not a template specialization. Compilation always attempts to instantiate std::fill(__first_, __last_, __x), whether

[Bug c/32102] New: -Wall stomps on -Wstrict-overflow

2007-05-26 Thread mec at google dot com
at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32102

[Bug c++/31742] New: warn_unused_result prints no warning for return value with destructor

2007-04-29 Thread mec at google dot com
Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC

[Bug libstdc++/28406] New: What should be value of sqrt(complexdouble(-1.0,-0.0))?

2006-07-17 Thread mec at google dot com
: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC

[Bug c++/28408] New: What should be value of complexdouble(1.0,0.0) *= -1?

2006-07-17 Thread mec at google dot com
: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28408

[Bug libstdc++/28277] New: __builtin_alloca with no limit in libstdc++

2006-07-05 Thread mec at google dot com
Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28277

[Bug libstdc++/28277] __builtin_alloca with no limit in libstdc++

2006-07-05 Thread mec at google dot com
--- Comment #2 from mec at google dot com 2006-07-05 22:20 --- Sure, here is a test program for versa_string: // Copyright 2006, Google Inc. All rights reserved. // Author: [EMAIL PROTECTED] (Michael Chastain) // // Test operator(ostream, const versa_string) #include ext/vstring.h

[Bug libstdc++/28277] __builtin_alloca with no limit in libstdc++

2006-07-05 Thread mec at google dot com
--- Comment #5 from mec at google dot com 2006-07-05 22:43 --- The threads point is just a basic stack size issue: threads on linux have a fixed size which is often smaller than the main stack size limit. With an output width of 60 million, it's easy to see a failure, even on a main

[Bug c++/27603] New: wrong code, apparently due to bad VRP

2006-05-14 Thread mec at google dot com
Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host

[Bug c++/27603] wrong code, apparently due to bad VRP

2006-05-14 Thread mec at google dot com
--- Comment #1 from mec at google dot com 2006-05-14 16:55 --- Created an attachment (id=11463) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11463action=view) C++ source code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27603

[Bug libstdc++/17012] [DR 526] std::list's function, remove, looks like it is reading memory that has been freed.

2006-01-21 Thread mec at google dot com
--- Comment #11 from mec at google dot com 2006-01-21 22:04 --- You can make this visible at the C++ program level with a Key class that has a signature field. Init the signature in the constructor, clear the signature in the destructor, and check the signature in operator

[Bug libstdc++/25896] New: hash_map::erase, unordered_map::erase fail if key is inside the table

2006-01-20 Thread mec at google dot com
: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC

[Bug c++/24745] New: unpleasant warning for if (NULL)

2005-11-08 Thread mec at google dot com
++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24745

[Bug c++/24746] New: unpleasant warning for if (NULL)

2005-11-08 Thread mec at google dot com
++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24746

[Bug tree-optimization/23509] [4.1 regression] ICE with ivopts

2005-09-03 Thread mec at google dot com
--- Additional Comments From mec at google dot com 2005-09-03 20:16 --- Here is another test with confirmatory data. Test case, reduced from some firefox code: int punycode_decode(const char input[], unsigned char case_flags[]) { int j; for (j = 0; j 128; ++j

[Bug c++/23512] New: wrong code with boolean refs, -O2

2005-08-22 Thread mec at google dot com
Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mec at google dot com CC: dank at kegel dot com,gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu

[Bug c++/23512] wrong code with boolean refs, -O2

2005-08-22 Thread mec at google dot com
--- Additional Comments From mec at google dot com 2005-08-22 06:59 --- Created an attachment (id=9551) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9551action=view) source file to demonstrate wrong code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23512