[Bug c++/45762] Same binary prints sign of nan on different systems.

2010-09-23 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-09-23 15:59 --- It should be the same as C (as if done by printf) and our implementation relies on the C library to do it correctly -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45762

[Bug bootstrap/45760] GCC build fails: can't find MPC

2010-09-23 Thread redi at gcc dot gnu dot org
--- Comment #8 from redi at gcc dot gnu dot org 2010-09-23 15:28 --- ... and assigning to myself again -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug bootstrap/45760] GCC build fails: can't find MPC

2010-09-23 Thread redi at gcc dot gnu dot org
--- Comment #7 from redi at gcc dot gnu dot org 2010-09-23 15:28 --- I'm going to add something to the docs, so I'll keep this PR open until I do that, so reopening ... -- redi at gcc dot gnu dot org changed: What|Removed

[Bug bootstrap/45760] GCC build fails: can't find MPC

2010-09-23 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-09-23 14:14 --- this should be documented, either under the --with-gmp configuration docs or in the faq -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug other/45760] GCC build fails: can't find MPC

2010-09-23 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-09-23 14:08 --- GCC doesn't set runpaths in executables, this is intentional: http://gcc.gnu.org/faq.html#rpath If you don't want those support libs installed for their own sake and are only installing them for GCC to u

[Bug other/45760] GCC build fails: can't find MPC

2010-09-23 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-09-23 13:58 --- set LD_LIBRARY_PATH so the dynamic loader can find libmpc.so.2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45760

[Bug c++/35101] Const object creation with mutable field

2010-09-23 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-09-23 10:14 --- The example was wrong, fixed by DR 497 http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#497 -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug bootstrap/28756] `make install` is broken, doesn't install `gcc` when program_prefix == "${triplet}-"

2010-09-22 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-09-22 23:22 --- (In reply to comment #3) > This seems to me an instance of "don't do it when it hurts", no? Thanks. That was my first thought when I saw this bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28756

[Bug c++/45747] Enums are stronger than templates

2010-09-22 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-09-22 15:27 --- Looks like a dup of PR 45625 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45747

[Bug c++/41437] No access control for classes in template functions

2010-09-20 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-09-20 15:54 --- *** Bug 40843 has been marked as a duplicate of this bug. *** -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/40843] access violation not detected for non dependent qualified enum value

2010-09-20 Thread redi at gcc dot gnu dot org
--- Comment #5 from redi at gcc dot gnu dot org 2010-09-20 15:54 --- PR 41437 has a simpler testcase *** This bug has been marked as a duplicate of 41437 *** -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/41437] No access control for classes in template functions

2010-09-20 Thread redi at gcc dot gnu dot org
-- redi at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Known to

[Bug debug/44645] [4.5 Regression] missing debug info for pointer types

2010-09-18 Thread redi at gcc dot gnu dot org
--- Comment #8 from redi at gcc dot gnu dot org 2010-09-18 13:20 --- *** Bug 45717 has been marked as a duplicate of this bug. *** -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/45717] [4.5 Regression] regression in debug info on simple C++ code

2010-09-18 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-09-18 13:20 --- *** This bug has been marked as a duplicate of 44645 *** -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/45711] Building with "--enable-libstdcxx-debug" fails during install

2010-09-17 Thread redi at gcc dot gnu dot org
--- Comment #5 from redi at gcc dot gnu dot org 2010-09-18 00:26 --- I nearly *always* build with ../gcc/configure --enable-libstdcxx-debug and haven't seen this on GNU/Linux (I'm not saying Makefile.am is right, just that the problem isn't apparent for me) -- htt

[Bug c++/45698] C++0x Variadic Templates: Infinite template recursion rather than an error message

2010-09-16 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-09-17 01:25 --- The 'typename' should not be necessary, and 4.5 and 4.6 compile it without problems -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45698

[Bug web/45688] Typo in __attribute__((version-id)) docs

2010-09-16 Thread redi at gcc dot gnu dot org
-- redi at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1

[Bug libstdc++/45403] python pretty printer for std::string requires GDB 7.1

2010-09-15 Thread redi at gcc dot gnu dot org
--- Comment #9 from redi at gcc dot gnu dot org 2010-09-15 23:52 --- oops, I wasn't paying attention - I screwed up my build of gdb-7.2 so it didn't have python support and mistook the non-pretty printed string for a traceback! Here is a fresh GCC 4.5.2 build and a vanil

[Bug libstdc++/45403] python pretty printer for std::string requires GDB 7.1

2010-09-15 Thread redi at gcc dot gnu dot org
--- Comment #8 from redi at gcc dot gnu dot org 2010-09-15 23:43 --- Hmm, OK, I can reproduce that with a current 4.5.2 build, but not with a snapshot from last week. Please file a separate bug for that, component=c++ - thanks! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45403

[Bug libstdc++/45403] python pretty printer for std::string requires GDB 7.1

2010-09-15 Thread redi at gcc dot gnu dot org
--- Comment #6 from redi at gcc dot gnu dot org 2010-09-15 11:21 --- (In reply to comment #5) > with -gdwarf-4 enabled it fails on gdb-7.2 with runtime error: I couldn't reproduce that with 4.5.2 20100909, can you give more details? -- http://gcc.gnu.org/bugzilla/show_bu

[Bug libstdc++/45403] python pretty printer for std::string requires GDB 7.1

2010-09-14 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-09-14 12:47 --- looks sensible, I'll do that -- redi at gcc dot gnu dot org changed: What|Removed |

[Bug c++/45657] Wrongly computed exception specification for destructor

2010-09-13 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-09-13 17:06 --- Jason, do you know if this was fixed as part of your noexcept work, or is it still latent in trunk? -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/45645] pr44972.C fails with error: �__assert_fail� was not declared in this scope

2010-09-13 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-09-13 17:04 --- the test already includes so presumably the fix is simply to replace line 77 with T const* operator->() const { assert(this->is_initialized()) ; return this->get_ptr_impl() ; } -- http://gcc.gnu.org

[Bug c++/45657] Wrongly computed exception specification for destructor

2010-09-13 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-09-13 16:55 --- Not a regression, and G++ 4.6 correctly rejects it: pr.cc:12:8: error: looser throw specifier for 'virtual Derived::~Derived() throw (Viral::Dose)' pr.cc:9:11: error: overriding 'virtual Base::~Base()

[Bug c++/45479] Exceptions not delivered properly after thread cancellation

2010-09-10 Thread redi at gcc dot gnu dot org
--- Comment #17 from redi at gcc dot gnu dot org 2010-09-10 10:11 --- (In reply to comment #15) > In particular, it does not appear that the thread is being reliably cancelled > at the pthread_testcancel call - sometimes f2 seems to run beyond the > pthread_testcancel, As I s

[Bug c++/45479] Exceptions not delivered properly after thread cancellation

2010-09-10 Thread redi at gcc dot gnu dot org
--- Comment #16 from redi at gcc dot gnu dot org 2010-09-10 09:55 --- There certainly is a race condition: there's no ordering between pthread_cancel and pthread_testcancel so the main thread can run f2(50) before thread2 calls pthread_cancel, which is why you see it sometime

[Bug c++/45625] Template parameter name does not hide outer class scope's member name

2010-09-09 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-09-09 23:51 --- I agree the lookup in get_value should find the template parameter, not Outer::value. Here's a variation that should not compile, because &value should be invalid struct Outer { static const int

[Bug c++/45618] GCC 4.4.4 strstream and ios::internal flag

2010-09-09 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-09-09 20:23 --- See Table 61 in C++ 2003 (or table 88 in C++0x draft) - the 4.4 behaviour is correct -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/45618] GCC 4.4.4 strstream and ios::internal flag

2010-09-09 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-09-09 19:19 --- this isn't specific to strstreams #include #include using namespace std; int main() { stringstream io; io.ios::fill('@'); io.flags(ios::internal); io.width( 10 ); io

[Bug c++/45606] [4.5/4.6 Regresssion] match a method prototyped a typedef alias with the original type (using stdlib)

2010-09-09 Thread redi at gcc dot gnu dot org
-- redi at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1

[Bug c++/45615] -Wshadow doesn't report class member shadowing

2010-09-09 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-09-09 16:31 --- I agree this would be useful, I've had problems with such shadowing when moving members higher in inheritance hierarchies and accidentally missing occurrences in some derived classes. 4.2 is unmaintained now

[Bug libstdc++/45574] ifstream::getline() is extremely slow

2010-09-07 Thread redi at gcc dot gnu dot org
--- Comment #7 from redi at gcc dot gnu dot org 2010-09-07 19:50 --- (In reply to comment #0) > Calling ios::sync_with_stdio(false) before the loop start reduces the time per > line to around 0.3us, on par with fgets(). This suggests that the problem is > with the stdio synchr

[Bug c++/45523] [C++0x] Failure to bind auto variable to function template instance

2010-09-06 Thread redi at gcc dot gnu dot org
--- Comment #5 from redi at gcc dot gnu dot org 2010-09-07 02:16 --- (In reply to comment #3) > I think there is a dup of this bug without auto. Not to mention it was > defect report against the standard. Bug 11407 / DR 115 ? That should be fixed in 4.5.0 -- http://gcc.g

[Bug c/45468] gcc does not warn about missing `-O' flag when specifying `-Wuninitialized'

2010-09-06 Thread redi at gcc dot gnu dot org
--- Comment #19 from redi at gcc dot gnu dot org 2010-09-07 01:44 --- Manu, did you mean to change Severity back to 'critical' ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45468

[Bug c++/45437] Loses reference during update

2010-08-29 Thread redi at gcc dot gnu dot org
--- Comment #13 from redi at gcc dot gnu dot org 2010-08-29 22:39 --- Here's a reduced testcase, struct s is not relevant: bool f(bool& b) { b = true; return false; } int main() { bool b = false; b |= f(b); return b; } -- http://gcc.gnu.org/bugzilla/show_b

[Bug c++/45437] Loses reference during update

2010-08-29 Thread redi at gcc dot gnu dot org
--- Comment #12 from redi at gcc dot gnu dot org 2010-08-29 20:50 --- (In reply to comment #10) > > However you beg the question because you assume that "evaluation of operands" > means "evaluation of rvalues derived from the operands". I assume nothing of

[Bug c++/45437] Loses reference during update

2010-08-29 Thread redi at gcc dot gnu dot org
--- Comment #9 from redi at gcc dot gnu dot org 2010-08-29 11:28 --- http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1944 proposed the changes to sequencing wording, revised in http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2239.html The new wording makes it clear

[Bug c++/45437] Loses reference during update

2010-08-28 Thread redi at gcc dot gnu dot org
--- Comment #8 from redi at gcc dot gnu dot org 2010-08-29 00:55 --- The sequencing rules have changed in C++0x, but G++ doesn't implement them yet AFAIK, and I'm not sure if the new rules affect this example -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45437

[Bug c++/45437] Loses reference during update

2010-08-28 Thread redi at gcc dot gnu dot org
--- Comment #7 from redi at gcc dot gnu dot org 2010-08-28 23:48 --- (In reply to comment #6) > Thank you. Don't know about C, but this is C++ in which operators are > function. Builtin operators are not functions. See e.g. footnote 12 on 1.9p18 in C++ 2003 which makes it

[Bug c++/986] g++ misses warning for & on temporary

2010-08-28 Thread redi at gcc dot gnu dot org
--- Comment #30 from redi at gcc dot gnu dot org 2010-08-28 14:42 --- Can we change the summary to mention references? It looks to me as though it's talking about the address-of operator. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=986

[Bug c++/986] g++ misses warning for & on temporary

2010-08-28 Thread redi at gcc dot gnu dot org
--- Comment #29 from redi at gcc dot gnu dot org 2010-08-28 14:39 --- that's why EDG only gives a "remark" not a warning -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=986

[Bug c++/45431] initializer-string for array of chars is too long: which one?

2010-08-27 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-08-27 19:10 --- 4.5 and 4.6 give the column number, but of the closing brace, which is no better -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45431

[Bug c++/45428] Address of template function even if fully named as a template-id is not properly determined

2010-08-27 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-08-27 15:21 --- (In reply to comment #1) > (In reply to comment #0) > > (void(*)(void)) my_fun<_T> // This is test.cpp:22 > > Can I assume you meant to case to (void(*)(void*)) here? With that change 4.

[Bug c++/45428] Address of template function even if fully named as a template-id is not properly determined

2010-08-27 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-08-27 15:15 --- (In reply to comment #0) > (void(*)(void)) my_fun<_T> // This is test.cpp:22 Can I assume you meant to case to (void(*)(void*)) here? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45428

[Bug c++/45411] Please add "-Wno-unused-variable" and friends compiler warning options

2010-08-26 Thread redi at gcc dot gnu dot org
--- Comment #5 from redi at gcc dot gnu dot org 2010-08-26 15:09 --- (In reply to comment #4) > > > (In reply to comment #0) > >> (5) I'm lazy and don't want to locate the applicable man page > > > Here it is: > > http://gcc.gnu.org/onlinedoc

[Bug c++/45411] Please add "-Wno-unused-variable" and friends compiler warning options

2010-08-26 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-08-26 10:14 --- You didn't say which version of GCC you're using, but it doesn't really matter because these options have been in place for many years. (In reply to comment #0) > (5) I'm lazy and don't w

[Bug libstdc++/45403] python pretty printer for std::string requires GDB 7.1

2010-08-25 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-08-25 14:17 --- Tom, I don't remember if the decision to use lazy_string (and therefore require GDB 7.1) was intentional - is a fallback worthwhile? -- redi at gcc dot gnu dot org changed: What|Re

[Bug libstdc++/45403] broken python pretty printer for unordered_map.

2010-08-25 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-08-25 14:12 --- It's nothing to do with unordered_map, it's std::string, and it fails because lazy_string was added in GDB 7.1 we can probably do something like if (gdb.VERSION == '7.0'): r

[Bug c++/36483] Getting an address of a byte-aligned field declared as a bit-field should be allowed

2010-08-25 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-08-25 12:21 --- (In reply to comment #3) > So, how do we report bugs in the C standard? Try the comp.std.c newsgroup -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36483

[Bug c++/45378] [C++0x] Narrowing error not detected

2010-08-25 Thread redi at gcc dot gnu dot org
-- redi at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1

[Bug libstdc++/45398] [C++0x] Missing atomic<_Tp*>::store definition

2010-08-24 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-08-24 15:49 --- confirmed, for 4.5 and 4.6 the relevant header is not -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/45398] [C++0x] Missing atomic<_Tp*>::store definition

2010-08-24 Thread redi at gcc dot gnu dot org
-- redi at gcc dot gnu dot org changed: What|Removed |Added Severity|critical|normal Component|c++ |libstdc

[Bug c++/45398] Missing atomic<_Tp*>::store definition

2010-08-24 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-08-24 15:36 --- (In reply to comment #0) > Also, compare_swap is not declared. Instead, compare_exchange_weak(strong) > exist. It is not a bug, but is not consistent with the document. > http://www.open-std.org/jtc1/sc22/

[Bug c++/45374] template keyword incorrectness// failure to parse valid code.

2010-08-23 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-08-23 22:01 --- (In reply to comment #2) > > BTW, Visual Studio (2010) has different behavior -- it accepts both of the > statements in main(), even though they require different parse trees. EDG (Comeau) also accepts

[Bug c++/45383] [4.5/4.6 Regression] Implicit conversion to pointer does no longer automatically generate operator== and operator!=.

2010-08-23 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-08-23 13:17 --- The summary seems backwards: the conversion shouldn't generate operator==, instead using operator== should trigger the conversion, but fails to when the conversion operator is a template. Strangely, adding

[Bug libstdc++/45347] concurrence.h: In constructor '__gnu_cxx::__cond::__cond()': /home/jayk/obj/gcc451/alphaev67-dec-osf5.1/libstdc++-v3/include/ext/concurrence.h:276:29: warning: missing initialize

2010-08-23 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-08-23 11:35 --- (In reply to comment #2) > This is building libstdc++ 4.5.1. > You can sort of tell from the path. > I build in "obj". I don't install to "obj". Ah yeah - the report would ha

[Bug libstdc++/45347] concurrence.h: In constructor '__gnu_cxx::__cond::__cond()': /home/jayk/obj/gcc451/alphaev67-dec-osf5.1/libstdc++-v3/include/ext/concurrence.h:276:29: warning: missing initialize

2010-08-23 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-08-23 11:22 --- this report isn't much help - does the warning occur when building the library, or using it? and I doubt it makes any difference, but you've reported it against 4.5.1 and then said you're using 4.5

[Bug c/45358] =+ oddness

2010-08-20 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-08-20 15:36 --- Yes, "if (b = 2)" is valid and -Wparentheses warns about that. (In reply to comment #0) > It would be nice if future version could at least throw a warning. Obviously it can't be anything *more* th

[Bug c++/45341] Compiler error matching template function with array reference parameter to anonimous struct array

2010-08-19 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-08-19 14:53 --- N.B this has nothing to do with arrays, the following fails for the same reason: template void func (T&); static struct { int i; } arr; void test() { func(arr); } -- http://gcc.gnu.org/bugz

[Bug c++/45341] Compiler error matching template function with array reference parameter to anonimous struct array

2010-08-19 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-08-19 14:52 --- template parameters must have linkage, but an unnamed type has no linkage -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/44645] [4.5 Regression] missing debug info for pointer types

2010-08-19 Thread redi at gcc dot gnu dot org
--- Comment #7 from redi at gcc dot gnu dot org 2010-08-19 12:32 --- testcase from Bug 45334 reduced to a single file: struct Base { virtual ~Base(); }; Base::~Base() {} struct Derived : Base { virtual ~Derived(); void foo(); }; Derived::~Derived() {} void Derived::foo

[Bug debug/44645] [4.5 Regression] missing debug info for pointer types

2010-08-19 Thread redi at gcc dot gnu dot org
--- Comment #6 from redi at gcc dot gnu dot org 2010-08-19 12:26 --- (adjusting title to be more general) testcase from dup Bug 45181 struct S { int f(S*); }; int S::f(S* p) { return 0; } int main() { S s; return s.f(&s); } within S::f p has type void* Tom, CCing

[Bug c++/45334] Base class type information not accessible in binaries compiled with g++ 4.5.0

2010-08-19 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-08-19 12:22 --- works with 4.4 and 4.6, so I'm marking it as a dup *** This bug has been marked as a duplicate of 44645 *** -- redi at gcc dot gnu dot org changed: What|Removed |

[Bug debug/44645] [4.5 Regression] wrong debug info for nested typedef

2010-08-19 Thread redi at gcc dot gnu dot org
--- Comment #5 from redi at gcc dot gnu dot org 2010-08-19 12:22 --- *** Bug 45334 has been marked as a duplicate of this bug. *** -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/45181] No debug information for parameter type

2010-08-19 Thread redi at gcc dot gnu dot org
--- Comment #6 from redi at gcc dot gnu dot org 2010-08-19 12:19 --- *** This bug has been marked as a duplicate of 44645 *** -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/44645] [4.5 Regression] wrong debug info for nested typedef

2010-08-19 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-08-19 12:19 --- *** Bug 45181 has been marked as a duplicate of this bug. *** -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/45334] Base class type information not accessible in binaries compiled with g++ 4.5.0

2010-08-19 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-08-19 12:13 --- Probably Bug 44645 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45334

[Bug c++/45331] Generate clear diagnostics when a semicolon is missing at the end of a class definition

2010-08-19 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-08-19 12:11 --- Bug 16189 and Bug 36888 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45331

[Bug c++/45328] bug w/ typedefs and std::initializer_list

2010-08-18 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-08-18 22:54 --- possibly related to Bug 44703, although that's fixed in 4.5.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45328

[Bug c++/45303] Compile error when not using -ftree-ter

2010-08-17 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-08-17 09:42 --- Looking at the diagnostics issued when -pedantic is added, I think the right conversion is (void*)(plain_foobar_t)&Foo::foobar That still uses the G++ extension, and doesn't give the asm error eve

[Bug c++/45303] Compile error when not using -ftree-ter

2010-08-17 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-08-17 09:38 --- (In reply to comment #1) > IMHO this isn't a bug, to simplify that into an integer you really need some > optimizations. The conversion looks very weird, if you use something saner The conversion uses thi

[Bug libstdc++/45300] in cstdio/cstdlib keyword restrict is used instead of __restrict

2010-08-16 Thread redi at gcc dot gnu dot org
--- Comment #7 from redi at gcc dot gnu dot org 2010-08-16 18:13 --- Ah I see the problem now, sorry. Even when we're using C99 features, 'restrict' is never a keyword for C++. Does __restrict even have any effect on declarations (rather than definitions)? If n

[Bug libstdc++/45300] in cstdio/cstdlib keyword restrict is used instead of __restrict

2010-08-16 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-08-16 17:33 --- Does the user report say anything else? Is this when using -std=c++98 -pedantic-errors? Something else? They're not used unconditionally, they're guarded by C99-related macros. -- http://gcc.gnu.or

[Bug c/45289] gcc lacks a "posix" option for "-std" since POSIX 2008 defines special behavior

2010-08-15 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-08-15 19:38 --- I don't think adding -std=posix is the right solution, since dlsym needs to be usable if users choose other options such as -std=c++0x or -std=gnu99 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45289

[Bug libstdc++/45283] performance/30_threads/future/polling.cc fails at compile time

2010-08-14 Thread redi at gcc dot gnu dot org
--- Comment #5 from redi at gcc dot gnu dot org 2010-08-15 00:37 --- Fixed for 4.5.2 and 4.6.0 -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/45283] performance/30_threads/future/polling.cc fails at compile time

2010-08-14 Thread redi at gcc dot gnu dot org
--- Comment #4 from redi at gcc dot gnu dot org 2010-08-15 00:36 --- Subject: Bug 45283 Author: redi Date: Sun Aug 15 00:36:16 2010 New Revision: 163259 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163259 Log: 2010-08-15 Jonathan Wakely PR libstdc

[Bug libstdc++/45283] performance/30_threads/future/polling.cc fails at compile time

2010-08-14 Thread redi at gcc dot gnu dot org
--- Comment #2 from redi at gcc dot gnu dot org 2010-08-14 20:01 --- Subject: Bug 45283 Author: redi Date: Sat Aug 14 20:00:55 2010 New Revision: 163250 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163250 Log: 2010-08-14 Jonathan Wakely PR libstdc

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-14 Thread redi at gcc dot gnu dot org
--- Comment #59 from redi at gcc dot gnu dot org 2010-08-14 17:10 --- (In reply to comment #58) > > (is Chris your friend?) Of course not. I have no idea who he is. > > Are you confusing me with Michael? I've not said anything about LDT. > > Yes I am. I

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-14 Thread redi at gcc dot gnu dot org
--- Comment #57 from redi at gcc dot gnu dot org 2010-08-14 15:09 --- (In reply to comment #55) > (In reply to comment #53) > > Look at the page history, it was removed by someone else, probably because > > your > > comment is badly written and not suitable f

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-14 Thread redi at gcc dot gnu dot org
--- Comment #54 from redi at gcc dot gnu dot org 2010-08-14 14:25 --- (In reply to comment #53) > GCC compiles that fine, try it. Sorry, I forgot my manners, what I meant is... Why don't you think before shooting off some crap. So I have shown you talk crap. Do you like it? Be

[Bug c++/45284] sort accesses memory before first iterator

2010-08-14 Thread redi at gcc dot gnu dot org
--- Comment #3 from redi at gcc dot gnu dot org 2010-08-14 14:00 --- You probably want something like bool operator<(const E& e2) const { return x != e2.x ? x < e2.x : a < e2.a; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45284

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-14 Thread redi at gcc dot gnu dot org
--- Comment #53 from redi at gcc dot gnu dot org 2010-08-14 13:55 --- (In reply to comment #52) > (In reply to comment #51) > > > There you go, you are now famous. > > > http://en.wikipedia.org/wiki/GNU_Compiler_Collection#Criticism > > > Why did you

[Bug libstdc++/45283] performance/30_threads/future/polling.cc fails at compile time

2010-08-13 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-08-14 00:19 --- oops, I see the problem -- redi at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-13 Thread redi at gcc dot gnu dot org
--- Comment #50 from redi at gcc dot gnu dot org 2010-08-13 22:40 --- Oh, and if you do get people to understand that pointer arithmetic is not always well-defined, that would be a good thing. There are other people who share you're incorrect understanding of the C and C++ lang

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-13 Thread redi at gcc dot gnu dot org
--- Comment #49 from redi at gcc dot gnu dot org 2010-08-13 22:38 --- Please, start a blog and write your views somewhere else. PLEASE. You're rude, ignorant and annoying. (In reply to comment #48) > of why it is important to be able to initialize classes as function > para

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-13 Thread redi at gcc dot gnu dot org
--- Comment #45 from redi at gcc dot gnu dot org 2010-08-13 16:32 --- Congratulations. Are you done now? What else are you hoping to achieve? Is this a cry for attention? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45265

[Bug libstdc++/45276] Need to document _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE

2010-08-13 Thread redi at gcc dot gnu dot org
--- Comment #1 from redi at gcc dot gnu dot org 2010-08-13 11:50 --- (In reply to comment #0) > I propose to add a more detailed documentation (though I don't know the exact > place where to add it). maybe http://gcc.gnu.org/onlinedocs/libstdc++/manual/debug.html The ht

[Bug c++/45153] DWARF DW_AT_external flag set for undefined variables

2010-08-13 Thread redi at gcc dot gnu dot org
--- Comment #13 from redi at gcc dot gnu dot org 2010-08-13 11:05 --- (In reply to comment #7) > Also, how does on locate the DIEs for variables/functions that are listed in > the .debug_pubnames section($ eu-readelf -wpubnames ). The list of > variables/functions that are *de

[Bug c++/45153] DWARF DW_AT_external flag set for undefined variables

2010-08-13 Thread redi at gcc dot gnu dot org
--- Comment #11 from redi at gcc dot gnu dot org 2010-08-13 10:51 --- But surely if (as you suggest) swscanf had a DIE without DW_AT_external that would imply it was private to the compilation unit, which would be wrong. If a non-static function has a DIE, it should include

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-12 Thread redi at gcc dot gnu dot org
--- Comment #25 from redi at gcc dot gnu dot org 2010-08-12 17:53 --- (In reply to comment #23) > Maybe you do a good job when you quickly send them away after stamping it with > "non-conformant", I don't know, but I expected a little more interest on your > pa

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-12 Thread redi at gcc dot gnu dot org
--- Comment #19 from redi at gcc dot gnu dot org 2010-08-12 16:20 --- Everyone understands it, you're just wrong. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45265

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-12 Thread redi at gcc dot gnu dot org
--- Comment #16 from redi at gcc dot gnu dot org 2010-08-12 16:17 --- (In reply to comment #15) > > char* p1=random_address(); > char* p2=another_random_address(); > > p1-p2 is always well defined, no matter to which objects they point to. No. No it isn't. I

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-12 Thread redi at gcc dot gnu dot org
--- Comment #12 from redi at gcc dot gnu dot org 2010-08-12 16:09 --- Seriously, go away. I'll get far ruder if you're going to open bug reports worded like this: (In reply to comment #0) > Don't bother trying to understand why I need the & operand to work as

[Bug c++/45265] GCC has an intermittent bug when computing the address of function parameters

2010-08-12 Thread redi at gcc dot gnu dot org
--- Comment #8 from redi at gcc dot gnu dot org 2010-08-12 15:52 --- (In reply to comment #6) > (In reply to comment #4) > > Pretty please, before filing further bugs take time and learn C. > > The pointer subtraction triggers undefined behavior, because one pointer &g

[Bug c++/45249] Indirect variable parameters sometimes cause segmentation fault

2010-08-11 Thread redi at gcc dot gnu dot org
--- Comment #34 from redi at gcc dot gnu dot org 2010-08-11 21:27 --- (In reply to comment #25) > In other words my code is not portable because GCC is not doing what it > should. > GCC causes code not to be portable a lot of times, like in the following case > (which does

[Bug c++/45249] Indirect variable parameters sometimes cause segmentation fault

2010-08-11 Thread redi at gcc dot gnu dot org
--- Comment #24 from redi at gcc dot gnu dot org 2010-08-11 17:57 --- (In reply to comment #22) > > If GCC supports cdecl on a x86 plaform then it must support the packing of > parameters as defined for x86 (it is not standardize that I know of, but it is > well define

[Bug c++/45249] Indirect variable parameters sometimes cause segmentation fault

2010-08-11 Thread redi at gcc dot gnu dot org
--- Comment #19 from redi at gcc dot gnu dot org 2010-08-11 14:10 --- (In reply to comment #18) > Of course vsnprintf was my first choice, as you can see from the WIN32 part of > the code I sent you. In WIN32 I can use vsnprint in a very natural and > predictable way in "f

[Bug c++/45249] Indirect variable parameters sometimes cause segmentation fault

2010-08-11 Thread redi at gcc dot gnu dot org
--- Comment #17 from redi at gcc dot gnu dot org 2010-08-11 11:55 --- As already stated, what you are doing is not valid C or C++, the standards do not guarantee the behaviour you are expecting w.r.t stack layout, and an optimising C or C++ compiler follows the rules of the language

[Bug libstdc++/42925] Not possible to compare unique_ptr with 0

2010-08-10 Thread redi at gcc dot gnu dot org
--- Comment #13 from redi at gcc dot gnu dot org 2010-08-11 00:15 --- Yes, I agree. I think it would be good to add the overloads, they can always be adjusted before 4.6 if they don't match the wording Alisdair proposes. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42925

[Bug libstdc++/45226] the difference of fstream's open() in different GCC version

2010-08-10 Thread redi at gcc dot gnu dot org
--- Comment #5 from redi at gcc dot gnu dot org 2010-08-10 09:16 --- You have not found a bug in GCC and this is not the place to learn C++. Please find a reference on C++ iostreams or find an appropriate forum to ask questions. You can call is_open() to see if the stream was opened

  1   2   3   4   5   6   7   >