[Bug c++/38908] [4.4 regression] Unexplained "'' is used uninitialized in this function" warning in cc1plus -m64

2009-01-27 Thread bangerth at gmail dot com
--- Comment #5 from bangerth at gmail dot com 2009-01-27 16:00 --- Richard, this isn't a duplicate of PR 38851: while the testcase there indeed now passes, the one in the current PR still fails. Best Wolfgang -- bangerth at gmail dot com changed: What|Re

[Bug c++/38908] [4.4 regression] Unexplained "'' is used uninitialized in this function" warning in cc1plus -m64

2009-01-27 Thread bangerth at gmail dot com
-- bangerth at gmail dot com changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38908

[Bug c++/38908] [4.4 regression] Unexplained "'' is used uninitialized in this function" warning in cc1plus -m64

2009-01-28 Thread bangerth at gmail dot com
--- Comment #9 from bangerth at gmail dot com 2009-01-28 17:27 --- Created an attachment (id=17203) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17203&action=view) Failing testcase Richard, I hate to break the news to you but there are even more cases. Attached is a fi

[Bug c++/38908] [4.4 regression] Unexplained "'' is used uninitialized in this function" warning in cc1plus -m64

2009-01-28 Thread bangerth at gmail dot com
--- Comment #10 from bangerth at gmail dot com 2009-01-28 17:28 --- Re-open -- bangerth at gmail dot com changed: What|Removed |Added Status|RESOLVED

[Bug c++/38928] infinite loop on error message in C++ only

2009-01-30 Thread bangerth at gmail dot com
--- Comment #5 from bangerth at gmail dot com 2009-01-30 15:00 --- (In reply to comment #4) > However, I'm still analyzing whether we really want to reject. As data points, > ICC doesn't, even in strict mode; on the other hand Comeau rejects the > identifier "

[Bug c++/39038] Redeclaration

2009-01-30 Thread bangerth at gmail dot com
--- Comment #3 from bangerth at gmail dot com 2009-01-30 15:03 --- This is probably related to PR 2288. -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/18770] g++ accepts invalid code with scopes on ifs

2009-01-30 Thread bangerth at gmail dot com
--- Comment #5 from bangerth at gmail dot com 2009-01-30 15:05 --- *** Bug 39038 has been marked as a duplicate of this bug. *** -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/39038] Redeclaration

2009-01-30 Thread bangerth at gmail dot com
--- Comment #4 from bangerth at gmail dot com 2009-01-30 15:05 --- *** This bug has been marked as a duplicate of 18770 *** -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/38986] comparing lengths of 2 strings reads through both strings completely

2009-01-30 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-01-30 15:13 --- Yes, I think this would be an optimizing compiler could potentially perform. At the same time I think you are expecting too much from the compiler: it would have to have a semantic understanding of what the strlen

[Bug c++/38541] function parameter type T(*)[]

2009-01-30 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-01-30 15:20 --- Confirmed. The original testcase had a function argument of type pointer-to-pointer-to-array-of-unknown-size, but this testcase also fails: template bool f (T_ p); bool g () { return f(0

[Bug c++/38541] function parameter type T(*)[]

2009-01-30 Thread bangerth at gmail dot com
-- bangerth at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed

[Bug c++/38958] 'unused variable' warning emitted when extending the lifetime of a returned RAII type by holding a reference to const despite delayed destructor side-effects. [dtor]

2009-01-30 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-01-30 15:23 --- Confirmed. -- bangerth at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/38950] [4.3/4.4 regression] ICE: deducing function template arguments for array type.

2009-01-30 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-01-30 15:27 --- Confirmed. This used to work in 4.1 where we got the following error (which does not earn the prize for the prettiest error message ever): g/x> /home/bangerth/bin/gcc-4.1.1/bin/c++ -c x.cc x.cc: In function '

[Bug c++/38950] [4.3/4.4 regression] ICE: deducing function template arguments for array type.

2009-01-30 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-01-30 15:28 --- Thinking some more about it, I believe that the code is actually valid. icc accepts it, for comparison. W. -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/38888] [C++0x] badly readable diagnostic output with variadic templates

2009-01-30 Thread bangerth at gmail dot com
--- Comment #5 from bangerth at gmail dot com 2009-01-30 15:29 --- I think Jason confirmed this already... -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/38828] g++ 4.3.2: -O2 without -fno-inline-small-functions makes some template instantiations disappear

2009-01-30 Thread bangerth at gmail dot com
--- Comment #10 from bangerth at gmail dot com 2009-01-30 15:37 --- (In reply to comment #9) > Following the twisted maze that is BOOST_CLASS_EXPORT() leads me to think that > it is (very) roughly equivalent to this: > > void dummy(boost::archive::xml_iarchive &

[Bug c++/38761] %s substituted with regular word can't be properly translated

2009-01-30 Thread bangerth at gmail dot com
--- Comment #3 from bangerth at gmail dot com 2009-01-30 15:45 --- Confirmed. There is no need to convolve error messages like that. W. -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/37093] [4.2/4.3/4.4 Regression] ICE with pointer to member template parameters

2009-01-30 Thread bangerth at gmail dot com
--- Comment #16 from bangerth at gmail dot com 2009-01-30 15:49 --- (In reply to comment #5) > Excuse me, but I do not understand what makes this code invalid. Could anybody > explain? If so, does this apply to all the test cases given (also for bugs > that > are marked a

[Bug c++/37093] [4.2/4.3/4.4 Regression] ICE with pointer to member template parameters

2009-01-30 Thread bangerth at gmail dot com
--- Comment #17 from bangerth at gmail dot com 2009-01-30 15:51 --- *** Bug 38681 has been marked as a duplicate of this bug. *** -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/38681] Internal compiler error. expr.c:6956 [Template instantiation with non-type value of member function ptr]

2009-01-30 Thread bangerth at gmail dot com
--- Comment #7 from bangerth at gmail dot com 2009-01-30 15:51 --- (In reply to comment #5) > Did I understand this wrong ? Does the correct interpretation of the standard > not allow for member-function-pointers as non-type arguments ? It does, but it requires them to be in a co

[Bug c++/38658] inefficient code on trivial try/catch statement

2009-01-30 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-01-30 15:58 --- The standard details certain side effects of throwing exceptions such as allocating and freeing memory as well as setting expressions that std::uncaught_exception can evaluate. These side effects can not always be

[Bug c++/38557] dynamic_cast should give a warning/error for non related classes

2009-01-30 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-01-30 16:02 --- Confirmed. Gcc would have to keep track of the actual types of variables. W. -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/40155] New: [c++1x] variadic template pack problem

2009-05-14 Thread bangerth at gmail dot com
gcc dot gnu dot org ReportedBy: bangerth at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40155

[Bug c++/40155] [c++1x] variadic template pack problem

2009-05-14 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-05-15 02:56 --- Oh, should've said: g/x> /home/bangerth/bin/x86/gcc-mainline/bin/c++ -std=c++0x -c x.cc x.cc:9: error: invalid conversion from 'int (*)(double)' to 'int (*)()' x.cc:5: error: too man

[Bug tree-optimization/40642] New: [4.5 regression] ICE with -fprofile-generate

2009-07-03 Thread bangerth at gmail dot com
tus: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bangerth at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40642

[Bug c++/12277] Warn on dynamic casts with known NULL results.

2009-07-06 Thread bangerth at gmail dot com
--- Comment #6 from bangerth at gmail dot com 2009-07-06 20:56 --- (In reply to comment #3) I had to stare at the testcase in comment #3 for a little while and thought others may have to as well: it fails because the inheritance from Base is *private*, not because the dynamically

[Bug c++/31423] Improve upon "invalid use of member (did you forget the '&' ?)"

2009-08-05 Thread bangerth at gmail dot com
--- Comment #4 from bangerth at gmail dot com 2009-08-05 17:54 --- (In reply to comment #3) > &c.f isn't even valid, it should be &C::f > > I didn't check the code, but that message isn't used for member variables or > nested types, so if it does on

[Bug c++/31423] Improve upon "invalid use of member (did you forget the '&' ?)"

2009-08-05 Thread bangerth at gmail dot com
--- Comment #5 from bangerth at gmail dot com 2009-08-05 17:57 --- However, one of my gripes with the previous error message is that it's just too obscure: where did I forget the '&', and why would I have wanted to write them in the first place? It could have said

[Bug c++/31423] Improve upon "invalid use of member (did you forget the '&' ?)"

2009-08-05 Thread bangerth at gmail dot com
--- Comment #7 from bangerth at gmail dot com 2009-08-05 18:47 --- (In reply to comment #6) > Examples where the ampersand probably makes more sense are: > > g++.dg/rtti/typeid8.C > g++.dg/conversion/memfn2.C > g++.old-deja/g++.other/asm2.C Possibly, but in all thos

[Bug c++/38392] Template friend function injection

2009-01-31 Thread bangerth at gmail dot com
--- Comment #4 from bangerth at gmail dot com 2009-02-01 05:07 --- Confirmed indeed, with this (linker) error message: g/x> c++ x.cc /tmp/ccjPvb3J.o: In function `main': x.cc:(.text+0x12): undefined reference to `Function()' collect2: ld returned 1 exit status This alrea

[Bug c++/39045] No warning for uninitialized reference

2009-01-31 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-02-01 05:18 --- Confirmed. -- bangerth at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/39131] decimal float point: ICE on typeid( 0.dd )

2009-02-12 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-02-12 23:17 --- Confirmed: g/x> /home/bangerth/bin/x86/gcc-mainline/bin/c++ -c x.cc x.cc: In function 'int main()': x.cc:3: internal compiler error: in write_builtin_type, at cp/mangle.c:1855 Please submit a full bug

[Bug c++/39070] Segmentation fault

2009-02-12 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-02-12 23:21 --- I do get an ICE: g/x> /home/bangerth/bin/x86/gcc-mainline/bin/c++ -c x.cc x.cc: In instantiation of 'const int junk::value': x.cc:6: instantiated from here x.cc:4: internal compiler error: Segmentation

[Bug c++/39055] [4.2/4.3/4.4 regression] ICE with questionable default parameter of a member function

2009-02-12 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-02-12 23:23 --- I think the code is invalid. The name 'i' is non-dependent, so shouldn't it be bound to the member variable at the point of definition? W. -- bangerth at gmail dot com changed: W

[Bug c++/39060] [4.4 regression] ICE with lots of invalid member functions

2009-02-12 Thread bangerth at gmail dot com
--- Comment #4 from bangerth at gmail dot com 2009-02-12 23:21 --- Confirmed. -- bangerth at gmail dot com changed: What|Removed |Added CC

[Bug c++/39070] [4.3/4.4 regression] ICE with typeof()

2009-02-12 Thread bangerth at gmail dot com
--- Comment #4 from bangerth at gmail dot com 2009-02-13 00:12 --- Confirmed, it also ICEs on mainline. That's a much more serious case. I'm not entirely sure whether the code is valid: you do template static Z& y(); template static char test(typeof(y())*); with Y

[Bug c++/39269] New: Invalid template friend declaration accepted

2009-02-22 Thread bangerth at gmail dot com
Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bangerth at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39269

[Bug c++/36982] Unfolding of template function (in namespace) using overloads (in same namespace) requires forward declarations

2009-04-02 Thread bangerth at gmail dot com
--- Comment #3 from bangerth at gmail dot com 2009-04-02 22:05 --- Andrew is right: > static inline bool Read( const char* Str, int& v ) > { v = 0; return true; } > > template< class T > > static inline bool Read( const char* Str, std::vector<

[Bug c++/39684] GCC accepts template keyword where Comeau rejects it.

2009-04-08 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-04-08 13:11 --- The testcase is indeed invalid. We should reject it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39684

[Bug other/6588] throw() takes 20,000 cycles : is it expected ?

2009-04-08 Thread bangerth at gmail dot com
--- Comment #8 from bangerth at gmail dot com 2009-04-08 23:10 --- We're about 8 generations of gcc later now. Is this still true? Still 20,000 cycles? W. -- bangerth at gmail dot com changed: What|Removed |

[Bug c++/39875] New: [4.5 regression] Wrong "value computed is not used" warning

2009-04-23 Thread bangerth at gmail dot com
Wrong "value computed is not used" warning Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org

[Bug c/39889] [4.4 Regression] Bogus -Wunused-value warning

2009-04-26 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-04-26 17:10 --- Jakub, does your patch also fix PR 39875? Thanks W. -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/39875] [4.5 regression] Wrong "value computed is not used" warning

2009-04-26 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-04-26 17:10 --- May be related to PR 39889. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39875

[Bug c++/35669] NULL (__null) not considered different from 0 with C++

2009-04-29 Thread bangerth at gmail dot com
--- Comment #10 from bangerth at gmail dot com 2009-04-29 12:51 --- There is really nothing much that can be done within the current C++ standard. In C, NULL is defined as (void*)0 which can be converted to any other pointer and so is clearly marked as a pointer. The compiler can

[Bug libstdc++/56257] New: std::vector allows access to the elements of _Vector_base

2013-02-08 Thread bangerth at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56257 Bug #: 56257 Summary: std::vector allows access to the elements of _Vector_base Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED

[Bug libstdc++/56257] std::vector allows access to the elements of _Vector_base

2013-02-09 Thread bangerth at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56257 --- Comment #3 from Wolfgang Bangerth 2013-02-09 21:37:55 UTC --- :-) Sure, and of course I did tell him "don't do that". In essence it's a question of how easy it is to shoot yourself in the foot by exposing internal details of the implem

[Bug preprocessor/33415] Can't compile .cpp file with UTF-8 BOM.

2013-03-25 Thread bangerth at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33415 --- Comment #9 from Wolfgang Bangerth 2013-03-25 13:50:00 UTC --- Vikas: This was fixed in GCC in 2008. The version of GCC you are using (3.4.6) was released in 2006 and the entire 3.4.x tree is in fact from 2004. It is time for you to upg

[Bug c++/54575] New: ICE with std::vector::insert and -std=c++11

2012-09-13 Thread bangerth at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54575 Bug #: 54575 Summary: ICE with std::vector::insert and -std=c++11 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priori

[Bug c++/54575] [4.8 Regression] ICE with std::vector::insert and -std=c++11

2012-09-14 Thread bangerth at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54575 --- Comment #4 from Wolfgang Bangerth 2012-09-14 11:48:56 UTC --- Would this do? ;-) .. template struct is_convertible { static const bool value = true; }; template struct enable_if { }; template<> s

[Bug c++/54575] [4.8 Regression] ICE with std::vector::insert and -std=c++11

2012-09-18 Thread bangerth at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54575 --- Comment #13 from Wolfgang Bangerth 2012-09-18 15:32:17 UTC --- Thanks, all, for the quick turnaround. This works again, not just on the testcase but on the entire code base. Best W.

[Bug c++/54994] New: [4.8 regression] New ICE in tsubst_copy

2012-10-19 Thread bangerth at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54994 Bug #: 54994 Summary: [4.8 regression] New ICE in tsubst_copy Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal

[Bug c++/54844] [4.8 Regression] ice tsubst_copy, at cp/pt.c:12352

2012-10-19 Thread bangerth at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54844 Wolfgang Bangerth changed: What|Removed |Added CC||bangerth at gmail dot com

[Bug c++/54844] [4.8 Regression] ice tsubst_copy, at cp/pt.c:12352

2012-10-22 Thread bangerth at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54844 --- Comment #10 from Wolfgang Bangerth 2012-10-22 11:58:58 UTC --- Given that this bug has been found 3 times already (and I extracted my testcase from the widely used BOOST library), is there an ETA for a fix? W.

[Bug c++/54844] [4.8 Regression] ice tsubst_copy, at cp/pt.c:12352

2012-10-22 Thread bangerth at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54844 --- Comment #12 from Wolfgang Bangerth 2012-10-22 13:05:36 UTC --- Thanks, Jakub!

[Bug c++/41109] New: [4.5 regression] Argument flagged as unused despite use in sizeof()

2009-08-18 Thread bangerth at gmail dot com
rmal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bangerth at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41109

[Bug c++/41110] New: [4.5 regression] Wrong "unused variable" warning

2009-08-18 Thread bangerth at gmail dot com
Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bangerth at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41110

[Bug c++/41110] [4.5 regression] Wrong "unused variable" warning

2009-08-20 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-20 20:40 --- Jason, might this be a result of your changes to used/unused variables? W. -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/41109] [4.5 regression] Argument flagged as unused despite use in sizeof()

2009-08-20 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-20 20:41 --- Jason, might this be a result of your changes to used/unused variables? W. -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/41134] New: [4.5 regression] Variable flagges unused if only used in template function

2009-08-20 Thread bangerth at gmail dot com
cc dot gnu dot org ReportedBy: bangerth at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41134

[Bug c++/41134] [4.5 regression] Variable flagged unused if only used in template function

2009-08-20 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-08-20 20:47 --- (In reply to comment #1) > Well this is invalid code that is accepted by GCC anyways How so?? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41134

[Bug c++/41134] [4.5 regression] Variable flagged unused if only used in template function

2009-08-20 Thread bangerth at gmail dot com
--- Comment #4 from bangerth at gmail dot com 2009-08-20 20:54 --- (In reply to comment #3) > You cannot use a static variable in a template :). I would be unaware of that restriction. It's true that you can't use objects with internal linkage (such as static variables)

[Bug c++/41134] [4.5 regression] Variable flagged unused if only used in template function

2009-08-20 Thread bangerth at gmail dot com
--- Comment #6 from bangerth at gmail dot com 2009-08-20 21:20 --- (In reply to comment #5) > Why is this a regression? Which compiler version didn't warn here? 4.3.2. Current mainline warns. > The question is really whether we want unused variables just in the case >

[Bug c++/41109] [4.5 regression] Argument flagged as unused despite use in sizeof()

2009-08-24 Thread bangerth at gmail dot com
--- Comment #5 from bangerth at gmail dot com 2009-08-24 22:37 --- Thanks a lot for the quick turnaround, Jason! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41109

[Bug c++/41161] Hello World in C++ ISO does NOT compile

2009-08-24 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 04:12 --- It looks like your terminating double quote is not the same as the opening one. How are they encoded on your system? -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/41073] Array of iostreams

2009-08-24 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 04:21 --- This is the way C++ works. The copy constructor must be available. (The compiler doesn't have to actually call it, but it must be available.) -- bangerth at gmail dot com changed: What|Re

[Bug c++/41054] Cryptic error message when type is not defined.

2009-08-24 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 04:23 --- Yes. -- bangerth at gmail dot com changed: What|Removed |Added CC

[Bug c++/41038] [4.4/4.5 regression] Parsing error related to qualified name id

2009-08-24 Thread bangerth at gmail dot com
-- bangerth at gmail dot com changed: What|Removed |Added CC||bangerth at gmail dot com Status|UNCONFIRMED

[Bug c++/40942] GCC accepts code that Comeau and MSVC deems invalid.

2009-08-25 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-08-25 13:24 --- Why would this be ambiguous? A string literal has type "array of n const char" (see 2.13.4/1), so it should go with the array constructor. Do you disagree? W. -- bangerth at gmail dot com changed:

[Bug c++/40997] Wrong address returned in covariant return

2009-08-25 Thread bangerth at gmail dot com
--- Comment #8 from bangerth at gmail dot com 2009-08-25 13:27 --- Already confirmed. -- bangerth at gmail dot com changed: What|Removed |Added CC

[Bug c++/41002] Redundant diagnostic when class member function's name overlaps with class field's name

2009-08-25 Thread bangerth at gmail dot com
--- Comment #7 from bangerth at gmail dot com 2009-08-25 13:29 --- I would think so. -- bangerth at gmail dot com changed: What|Removed |Added Status

[Bug c++/23055] overload resolution does not find templated function (zero -> pointer)

2009-08-25 Thread bangerth at gmail dot com
--- Comment #4 from bangerth at gmail dot com 2009-08-25 13:31 --- *** Bug 41104 has been marked as a duplicate of this bug. *** -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/41104] overload resolution does not find templated function (zero -> pointer) (2)

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 13:31 --- Yes, I think this is an exact duplicate. *** This bug has been marked as a duplicate of 23055 *** -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/41131] [4.3 Regression] non-lvalue in unary `&' wrongly accepted

2009-08-25 Thread bangerth at gmail dot com
--- Comment #10 from bangerth at gmail dot com 2009-08-25 13:39 --- Was already confirmed. -- bangerth at gmail dot com changed: What|Removed |Added CC

[Bug c++/41127] [4.4/4.5 regression] unnamed bitfield declaration parser regression

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 13:43 --- This is an interesting one: enum EE {ee}; struct D { enum EE : 8; }; In C++98, this looks like an unnamed bit field as part of struct D, but with C++0x we

[Bug c++/41135] Uninitialized variable usage warning broken

2009-08-25 Thread bangerth at gmail dot com
--- Comment #3 from bangerth at gmail dot com 2009-08-25 13:45 --- Agreed -- I do get the warning from current mainline as well. -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/41153] ICE in building Qt4 src/core

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 13:46 --- Please follow the instructions listed in <http://gcc.gnu.org/bugs.html> as mentioned by the error message. In particular, we need a preprocessed testcase. -- bangerth at gmail dot com changed:

[Bug c++/23257] Incorrect exception-handling behavior with references

2009-08-25 Thread bangerth at gmail dot com
--- Comment #6 from bangerth at gmail dot com 2009-08-25 13:58 --- Confirmed. Nathan, is this the bug you had worked on? If so, it may be of interest to add a link to your patch to this PR for reference. W. -- bangerth at gmail dot com changed: What|Removed

[Bug c++/23702] volatile const members of structures not treated as volatile

2009-08-25 Thread bangerth at gmail dot com
--- Comment #4 from bangerth at gmail dot com 2009-08-25 13:59 --- gcc 3.3 has not been maintained for a long time. Since you say that gcc 4.0 fixes the bug, I think we can close the bug. W. -- bangerth at gmail dot com changed: What|Removed

[Bug c++/41161] Hello World in C++ ISO does NOT compile

2009-08-25 Thread bangerth at gmail dot com
-- bangerth at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41161

[Bug c++/40146] Unexplained "'' is used uninitialized in this function" warning

2009-08-25 Thread bangerth at gmail dot com
--- Comment #3 from bangerth at gmail dot com 2009-08-25 13:54 --- Hm, can you try to come up with a smaller testcase for which it may be a bit simpler to see what is going on? Thanks W. -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/40901] Access qualifiers of embedded templates are discarded

2009-08-25 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-08-25 14:04 --- Confirmed: - class A { template struct s { enum { value }; }; }; int i = A::s<10>::value; - This should produce an error but doesn

[Bug c++/40892] maybe_warn_cpp0x i18n problems

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 14:10 --- Confirmed. -- bangerth at gmail dot com changed: What|Removed |Added CC

[Bug c++/40855] undefined reference to `typeinfo for __int128'

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 14:13 --- With current mainline, I just get these errors: g/x> /home/bangerth/bin/x86/gcc-mainline/bin/c++ x.cc -std=c++0x x.cc:4:36: error: '__int128_t' was not declared in this scope x.cc:5:36: error: '__

[Bug c++/40821] C++ compiler accepts __attribute__ with missing parens

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 14:15 --- Confirmed. Very odd. -- bangerth at gmail dot com changed: What|Removed |Added CC

[Bug c++/40808] [4.4/4.5 regression] member template specialization causes ICE

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 14:16 --- Confirmed. An ICE. I haven't checked the accepts-invalid part. -- bangerth at gmail dot com changed: What|Removed |

[Bug c++/40793] "Error: no matching function for call to XYZ" doesn't display function-template-arguments

2009-08-25 Thread bangerth at gmail dot com
--- Comment #5 from bangerth at gmail dot com 2009-08-25 14:25 --- Jonathan, the point everyone is trying to make is this: since no function or function template matches the call, all the compiler could possibly do is list all declarations of the name staticPrint() or none, but of

[Bug c++/40685] explicit constructor is used where only implicit ctors are allowed

2009-08-25 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-08-25 14:39 --- Hm, confusing: - enum E {e}; struct A { A(int); explicit A(E) {}; }; int main () { A a = e; } - This compiles but not links becase A::A(int) is called. If

[Bug c++/40664] Parse error declaring friend class using dependent template instance

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 15:24 --- Confirmed: - template struct Base { template class I

[Bug c++/40855] undefined reference to `typeinfo for __int128'

2009-08-25 Thread bangerth at gmail dot com
--- Comment #3 from bangerth at gmail dot com 2009-08-25 15:26 --- Confirmed with gcc4.2.1. W. -- bangerth at gmail dot com changed: What|Removed |Added Last

[Bug c++/40561] code does not compile -- compiles fine when replacing != with !(==)

2009-08-25 Thread bangerth at gmail dot com
--- Comment #3 from bangerth at gmail dot com 2009-08-25 15:30 --- Can you try to come up with a smaller, possibly self-contained testcase that would make it simpler for us to determine what's going on? Take a look here regarding what would help us: http://gcc.gnu.org/bugs.ht

[Bug c++/40535] [4.5 regression] Invalid conversion from 'T' to 'T' error when compiling C++ code

2009-08-25 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-08-25 15:31 --- Confirmed. A regression. -- bangerth at gmail dot com changed: What|Removed |Added CC

[Bug c++/40527] #pragma pack([push,] n) should be coded in the signature

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 15:33 --- That would require that the ABI specifies such a mangling. I'm not sure anyone wants to go that route. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40527

[Bug c++/40406] ICE with broken template member declaration

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 15:34 --- Confirmed. -- bangerth at gmail dot com changed: What|Removed |Added CC

[Bug c++/40405] [4.3/4.4/4.5 Regression] ICE with invalid initialization of template member

2009-08-25 Thread bangerth at gmail dot com
--- Comment #2 from bangerth at gmail dot com 2009-08-25 15:35 --- Confirmed. -- bangerth at gmail dot com changed: What|Removed |Added CC

[Bug c++/40371] ICE with template operator

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 15:35 --- Confirmed. -- bangerth at gmail dot com changed: What|Removed |Added CC

[Bug c++/40315] template instantiation fails when using const typename

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 15:39 --- Hm, interesting. I would have thought as well that the code should compile. On the other hand, icc also produces the same error message, so I am now officially confused... -- bangerth at gmail dot com changed

[Bug c++/40292] ICE on legal code

2009-08-25 Thread bangerth at gmail dot com
--- Comment #3 from bangerth at gmail dot com 2009-08-25 15:40 --- Also works on gcc4.3.2, so apparently fixed everywhere. -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/40261] confusing diagnostic on ill-formed template definition

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 15:42 --- Yes, this is confusing. -- bangerth at gmail dot com changed: What|Removed |Added CC

[Bug c++/40239] Aggregate initialization requires copy constructor

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 15:44 --- Confirmed. Not a regression. -- bangerth at gmail dot com changed: What|Removed |Added

[Bug c++/40224] [4.3/4.4/4.5 regression] g++ Accepting invalid code

2009-08-25 Thread bangerth at gmail dot com
--- Comment #1 from bangerth at gmail dot com 2009-08-25 15:49 --- Confirmed. -- bangerth at gmail dot com changed: What|Removed |Added CC

  1   2   >