Re: middle-end/8405: GCC 3.2: 'throw "exception";' not caught by catch

2002-10-30 Thread bangerth
Synopsis: GCC 3.2: 'throw "exception";' not caught by catch State-Changed-From-To: open->closed State-Changed-By: bangerth State-Changed-When: Wed Oct 30 12:55:51 2002 State-Changed-Why: Not a bug. An exception specification attached to a function does not impl

Re: bootstrap/6825: [Sun OS 4.1.4] gcc 3.1 fails to build

2002-11-25 Thread bangerth
Old Synopsis: gcc 3.1 fails to build on sunos 4.1.4 New Synopsis: [Sun OS 4.1.4] gcc 3.1 fails to build State-Changed-From-To: open->feedback State-Changed-By: bangerth State-Changed-When: Mon Nov 25 14:59:50 2002 State-Changed-Why: I was surprised to see that SunOS4 is indeed still in

Re: other/8757: GCC crash when sizeof (long) > sizeof (char *), (splay_tree_compare_fn)strcmp is wrong

2003-03-15 Thread bangerth
Synopsis: GCC crash when sizeof (long) > sizeof (char *), (splay_tree_compare_fn)strcmp is wrong State-Changed-From-To: open->feedback State-Changed-By: bangerth State-Changed-When: Sat Mar 15 18:44:31 2003 State-Changed-Why: Do you have a small testcase that triggers the bug, so that

Re: c/9944: gcc does not warn for always-false "if (!a & 0x4)" bitwise and on boolean value

2003-03-21 Thread bangerth
Synopsis: gcc does not warn for always-false "if (!a & 0x4)" bitwise and on boolean value State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Sat Mar 22 04:31:36 2003 State-Changed-Why: Patches already floating around http://gcc.gnu.org/cg

Re: c++/9377: g++ 64bit calls wrong function -> Multi-inheritance:pointer to member function of the 2nd base calss points to wrong place

2003-01-21 Thread Wolfgang Bangerth
o I wouldn't be surprised if an accidentially working program breaks when you change something like the layout of the vt. That being said, I reopened the report to let others have a second look on things. Regards Wolfgang --

[Bug c/27153] function result is dereferenced error

2006-04-17 Thread bangerth at dealii dot org
--- Comment #9 from bangerth at dealii dot org 2006-04-18 03:21 --- > It does not matter either. The evaluation of a function argument is an atomic > procedure. No, it actually isn't. > If it starts it should generate a result. Isn't it strange if the > compi

[Bug c++/26838] Legal program rejection - protected base method addressing fails from grandchild class

2006-04-17 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2006-04-18 03:28 --- This is not a bug. While the name in a function call is looked up from inside the class, the name of a member function is looked up in the global scope. There, the member in question here is inaccessible. W

[Bug c++/26917] [4.0/4.1/4.2 regression] ICE with -frepo on invalid code

2006-04-17 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-04-18 03:30 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/26988] template constructor in template class derived from virtual base can not be specialized

2006-04-17 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2006-04-18 03:45 --- Confirmed, though this doesn't seem to have anything to do with PR 9050. Here's a shorter testcase: -- struct B{}; struct Bar : virtual B { template Bar( T const& cast )

[Bug c++/26997] g++ reports misleading error message when the identifier with error occurs earlier on the same line

2006-04-17 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2006-04-18 03:47 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/27052] When using excessive -ftemplate-depth g++ overflows the stack

2006-04-17 Thread bangerth at dealii dot org
--- Comment #8 from bangerth at dealii dot org 2006-04-18 03:50 --- We've had numerous such reports in the past. The compiler can't do anything to detect whether it has run out of stack space. What happens is that a program allocates stack space, the operating systems gives

[Bug c++/27053] symbol2.c:2102: internal error: Segmentation fault when i try to compile gSOAP in cross compilation

2006-04-17 Thread bangerth at dealii dot org
-- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27053

[Bug c++/26974] hidden declarations klobber STL

2006-04-18 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2006-04-19 02:57 --- As usual, a shorter testcase would have been appreciated. However, here there is really nothing that we can do: the executable doesn't link at all. I have plenty of missing symbols, for example hide::notAsse

[Bug c++/26974] hidden declarations klobber STL

2006-04-19 Thread bangerth at dealii dot org
--- Comment #5 from bangerth at dealii dot org 2006-04-19 14:11 --- No, because then I can't play around with the source. But seriously, how is the code supposed to be linkable when for example noAssembler only has a declaration, no definition? W. -- http://gcc.gnu.org/bug

[Bug c++/26838] Legal program rejection - protected base method addressing fails from grandchild class

2006-04-19 Thread bangerth at dealii dot org
--- Comment #6 from bangerth at dealii dot org 2006-04-19 21:20 --- No. Class C is implicitly a friend of itself. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26838

[Bug c++/27215] fails to resolve

2006-04-19 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2006-04-19 21:26 --- (In reply to comment #0) > However, the path foo->int->unsigned int is shorter than the path > foo->A->int->unsigned int, so the former should be chosen. There is no separate conversion A-&

[Bug c++/26974] hidden declarations klobber STL

2006-04-19 Thread bangerth at dealii dot org
--- Comment #7 from bangerth at dealii dot org 2006-04-20 03:46 --- (In reply to comment #6) > The problem pretty clearly had something to do with overloading operator,() > and > a call inside the STL leaking out to an overload in our code, because it went > away when I

[Bug libstdc++/26974] hidden declarations klobber STL

2006-04-19 Thread bangerth at dealii dot org
--- Comment #8 from bangerth at dealii dot org 2006-04-20 04:13 --- Thinking about it some more, I can come up with something. Take this code here: - class specReg{}; template int operator,(int i, T t) { abort(); return i; } #include int main() { std::vector v

[Bug libstdc++/26974] hidden declarations klobber STL

2006-04-20 Thread bangerth at dealii dot org
--- Comment #22 from bangerth at dealii dot org 2006-04-20 14:10 --- (In reply to comment #17) > Yes, you pick up my operator in Wolfgang's test case. But in the original > submission the vector code is *before* my operators, which are consequently > out > of scope

[Bug libstdc++/26974] hidden declarations klobber STL

2006-04-20 Thread bangerth at dealii dot org
--- Comment #24 from bangerth at dealii dot org 2006-04-20 18:16 --- (In reply to comment #23) > Actually I don't see why the comma operator can be overridden in C++ (yes this > I am raising a question about why the standards says it can). It was mid-March when Stroustru

[Bug c++/27397] [4.2 regression] ICE on invalid template argument

2006-05-03 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-03 16:00 --- This seems to work on the 4.1.x branch, however. So it must be a regression. W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27397

[Bug c++/27398] [4.0/4.1/4.2 regression] ICE on missing closing parenthesis

2006-05-03 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-03 16:01 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/27732] Parentheses elicit spurious error: "missing '>' to terminate the template argument list"

2006-05-22 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-22 22:46 --- Confirmed. I guess the workaround is to simply not use the parenthesis. Nevertheless, this is a regression introduced with the new parser in 3.4.0. W. -- bangerth at dealii dot org changed: What

[Bug c++/27722] [4.0/4.1/4.2 regression] ICE incrementing an array

2006-05-26 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-26 14:56 --- This didn't fail with 4.0.2pre, so it must be a regression on a release branch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27722

[Bug c++/27714] [4.0/4.1/4.2 regression] operator new as friend in template class rejected

2006-05-26 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-26 14:59 --- Confirmed. A regression. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/27713] [4.0/4.1 regression] ICE on invalid operator new

2006-05-26 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2006-05-26 15:00 --- Confirmed. A regression. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/27689] [4.1/4.2 regression] function template incorrectly selected as candidate

2006-05-26 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2006-05-26 15:04 --- (In reply to comment #1) > I think GCC 4.2.0 is correct in saying the function call is ambiguous, bar is > still a template class. Most definitely, foo::bar is not a template class, and the only thing the cal

[Bug c++/27670] ICE on invalid template parameter

2006-05-26 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-26 15:04 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/27668] [4.0/4.1/4.2 regression] ICE with invalid template parameter

2006-05-26 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-26 15:06 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/27667] [4.0/4.1/4.2 regression] ICE with in-class specialization

2006-05-26 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-26 15:06 --- Confirmed.. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/27665] [4.0/4.1/4.2 regression] ICE writing class instead of typename

2006-05-26 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-26 15:08 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/27527] invalid types produced out of argument deduction (SFINAE bug)

2006-05-26 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2006-05-26 15:14 --- Confirmed. Though it is worth mentioning that icc has the same "problem". -- bangerth at dealii dot org changed: What|Removed

[Bug pch/27475] ICE when generate a precompiled header, and the same header is given to -include on the command-line

2006-05-26 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-26 15:16 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/27465] [4.0 only] ICE on dependent const folding

2006-05-26 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2006-05-26 15:18 --- This works fine with 4.0.2, and 4.1-pre and 4.2-pre snapshots I have here. Could you check that it works for you as well with a recent snapshot? Thanks W. -- bangerth at dealii dot org changed: What

[Bug c++/27433] diagnostic for vector template argument is poor

2006-05-26 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2006-05-26 15:21 --- > template > void f(A, vector A, int); You meant __vector here. Certainly, the expectation is that the vector attribute will apply to the type only after instantiation. Whether that is feasible is a different

[Bug c++/27720] ICE with initialization of invalid variable

2006-05-26 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-26 14:57 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/27716] [4.1 regression] ICE with invalid assignment

2006-05-26 Thread bangerth at dealii dot org
--- Comment #5 from bangerth at dealii dot org 2006-05-26 14:58 --- Just for completeness' sake: confirmed. -- bangerth at dealii dot org changed: What|Removed |

[Bug c++/27403] T() can be an integer constant but is rejected as not one

2006-05-26 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-26 15:26 --- gcc parses this as template typename A::I foo (T) { return 0; } i.e. as meaning that the argument is not an integer, but a function that returns an integer. A simpler testcase is this (icc accepts it, though I'

[Bug c++/27227] [4.0/4.1/4.2 Regression] rejects valid code with some extern "C"

2006-05-26 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-26 15:28 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/27211] Bogus error "template definition of non-template" when there is no non-template

2006-05-26 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2006-05-26 15:29 --- Confirmed, but low priority. One should just follow the first error message. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/26698] g++ accepts const-incorrect code due to conversion function

2006-05-26 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2006-05-26 15:37 --- Confirmed. We should not be calling the conversion operator. W. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/25863] Allowed knowledge of private structure.

2006-05-26 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2006-05-26 15:38 --- As mentioned before, this is legal code. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/27665] [4.0/4.1/4.2 regression] ICE writing class instead of typename

2006-05-28 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2006-05-28 18:58 --- (In reply to comment #0) > I'm not quite sure whether writing "class" before "A::B::C" is valid > or has to be replaced by "typename". This is the subject of DR 180. W.

[Bug c++/27801] [4.0/4.1/4.2 regression] ICE in invert_truthvalue with template

2006-05-30 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-31 02:23 --- Confirmed -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/21264] duplicate symbol warnings for complex template class

2006-05-30 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2006-05-31 02:28 --- Can you verify whether this problem persists in the gcc 4.0.x series or later? gcc 3.4.x is no longer maintained, and any patch will not be backported. Thanks W. -- bangerth at dealii dot org changed

[Bug c++/27806] [4.0/4.1/4.2 regression] ICE with invalid ptr-to-member

2006-05-30 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-31 02:28 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/27807] [4.1/4.2 regression] ICE on invalid initializer

2006-05-30 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-31 02:29 --- Confirmed -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/27819] [4.0/4.1/4.2 regression] ICE casting static const variables

2006-05-30 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-31 02:31 --- I confirm the ICE with 4.0.x. With 4.1.x, we get a duplicate error message: g/x> /home/bangerth/bin/gcc-4.1-pre/bin/c++ -c x.cc x.cc:12: error: variable-size type declared outside of any function x.cc:12: er

[Bug c++/27820] [4.0/4.1/4.2 regression] ICE with duplicate label

2006-05-30 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-31 02:32 --- Confirmed -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/27821] [4.0/4.1/4.2 regression] ICE with invalid ptr-to-member

2006-05-30 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-05-31 02:33 --- Confirmed -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/21264] duplicate symbol warnings for complex template class

2006-05-31 Thread bangerth at dealii dot org
--- Comment #5 from bangerth at dealii dot org 2006-05-31 14:57 --- Thanks for the feedback. It is apparently fixed then... W. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/27826] [4.0/4.1 Regression] ICE in copy_to_mode_reg

2006-06-07 Thread bangerth at dealii dot org
-- bangerth at dealii dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27826

[Bug c++/27826] [4.0/4.1 Regression] ICE in copy_to_mode_reg

2006-06-08 Thread bangerth at dealii dot org
--- Comment #11 from bangerth at dealii dot org 2006-06-08 17:26 --- (In reply to comment #8) > Bangerth, why did you change the Priority? That is the job of the Release > manager. Actually, as a remark, I believe this isn't true. Bugmasters have always adjusted initial pr

[Bug c++/24605] [4.0/4.1/4.2 Regression] internal compiler error: Segmentation fault while compiling c++ file

2006-06-14 Thread bangerth at dealii dot org
--- Comment #16 from bangerth at dealii dot org 2006-06-15 03:39 --- (In reply to comment #13) > and the test case never exceeded 1 GB vm with r11. I would certainly hope > that gcc would politely report vm exhaustion as out-of-memory or some such > rather than segfaulti

[Bug c++/27768] [4.1/4.2 regression] wrong-code with vectors

2006-06-14 Thread bangerth at dealii dot org
--- Comment #10 from bangerth at dealii dot org 2006-06-15 03:45 --- This problem persists with gcc4.1.x from 2006-06-13. I believe I get the same glibc fault in one of my codes, which isn't particularly surprising given that Volker used widely used std:: components in his progr

[Bug c++/28058] [4.1/4.2 regression] ICE in inline_forbidden_p

2006-06-16 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2006-06-16 22:51 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/28058] [4.1/4.2 regression] ICE in inline_forbidden_p

2006-06-16 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2006-06-16 22:55 --- The code is invalid, however: explicit specializations must be declared before they are first used. In the snippet, B::B is used in foo() before the specialization is declared. The ICE consequently also goes away if a

[Bug c++/28056] [4.1/4.2 regression] enum accepted as scope

2006-06-16 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-06-16 22:56 --- This doesn't show up in 4.1.2pre 20060605, so must have been introduced after that. -- bangerth at dealii dot org changed: What|Removed |

[Bug c++/28051] [4.0/4.1/4.2 regression] ICE on invalid conversion operator

2006-06-16 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2006-06-16 23:00 --- Actually, 4.0.x is the only compiler that I can get to ICE: g/x> /home/bangerth/bin/gcc-4.0.x/bin/c++ -O3 -c x.cc x.cc: In instantiation of 'B<0>': x.cc:8: instantiated from here x.cc:5: error: n

[Bug c++/27962] [4.0/4.1 regression] ICE with invalid template parameter in specialization

2006-06-16 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2006-06-16 23:02 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/28330] finds wrong template overload; peculiar diagnostic

2006-07-11 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2006-07-11 08:29 --- As usual, a reduced (or at least smaller than 51,000 lines) testcase would be supremely helpful... W. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument

2009-01-06 Thread bangerth at dealii dot org
--- Comment #41 from bangerth at dealii dot org 2009-01-06 15:46 --- (In reply to comment #40) > I read all comments and saw a patch. But I don't know how I can fix my gcc > with > this patch. The easiest way is to wait for gcc 4.4. W. -- http://gcc.gnu.org/bugzill

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

2009-01-16 Thread bangerth at dealii dot org
Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bangerth at dealii dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3

[Bug libstdc++/38889] New: [C++0x] std::bind doesn't work

2009-01-16 Thread bangerth at dealii dot org
work } doesn't appear to work: g/x> /home/bangerth/bin/x86/gcc-mainline/bin/c++ -std=c++0x -c x.cc x.cc: In function 'void foo()': x.cc:6: error: no match for call to '(std::_Bind))(int)>) (int)' /home/bangerth/bin/x86/gcc-mainline/lib/gcc/i686-pc-linux-gnu

[Bug libstdc++/38889] [C++0x] std::bind doesn't work

2009-01-16 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2009-01-16 23:15 --- Btw, the equivalent that uses boost::bind works just fine. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38889

[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues

2009-01-16 Thread bangerth at dealii dot org
--- Comment #5 from bangerth at dealii dot org 2009-01-17 01:41 --- (In reply to comment #2) > I'm seeing the same thing with Boost.Bind (boost 1.37, GCC 4.2.1). boost.bind appears to work just fine for me, though!? W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35569

[Bug libstdc++/35569] [c++0x] std::bind result functor doesn't accept rvalues

2009-01-17 Thread bangerth at dealii dot org
--- Comment #7 from bangerth at dealii dot org 2009-01-18 03:58 --- (In reply to comment #6) > Maybe this issue isn't sufficiently clarified in the audit. Unless I'm badly > mistaken (Jon, Chris will correct me), this is not a bug for a C++03 + TR1 > bind >

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

2009-01-23 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2009-01-23 19:26 --- I see this as well. It triggers a ton of time in boost::graph code. I think it should have higher priority than P3. W. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug middle-end/38851] [4.4 regression] Compiler warns about uninitialized variable that is an object with a constructor

2009-01-23 Thread bangerth at dealii dot org
--- Comment #7 from bangerth at dealii dot org 2009-01-23 19:31 --- I see this as well. It triggers a lot when using boost::graph which uses empty classes as tags all over the place. A simple case with boost::graph would be this: -- #include using namespace

[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
processed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. >> c++ -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../mainline/configure --enable-languages=c,c++ --enable-checking --with-mpfr=/home/bangerth/bin/x86 --with-

[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++/24657] [3.4/4.0/4.1 Regression] bizarre diagnostic on valid (?) constructor

2005-11-07 Thread bangerth at dealii dot org
--- Comment #5 from bangerth at dealii dot org 2005-11-08 05:14 --- This can of course be made even simpler: struct A { template A(int (*)[i]) : j(i) {} int * i; int j; }; int i[3]; A a(&i); g/x> /home/bangerth/bin/gcc-3.4.5-pr

[Bug c++/24657] [3.4/4.0/4.1 Regression] bizarre diagnostic when a member variable and a template parameter have the same name

2005-11-07 Thread bangerth at dealii dot org
--- Comment #6 from bangerth at dealii dot org 2005-11-08 05:23 --- This is PR 13967. See in particular comment #11 in the audit trail there. Not that that PR would be particularly enlightening, but the situation is at least discussed at length there. W. *** This bug has been marked

  1   2   3   4   5   6   7   8   9   10   >