[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-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 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 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++/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++/38889] New: [C++0x] std::bind doesn't work

2009-01-16 Thread bangerth at dealii dot org
Version: 4.4.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bangerth at dealii dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38889

[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 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++/37831] -Wshadow warns about variables inside classes member functions

2008-10-14 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2008-10-15 01:51 --- (In reply to comment #2) > bar the function shadows bar the variable. I think the warning is correct. > The variable _bar is not being taken into account at all. Ah, bummer, I didn't even look close en

[Bug c++/37831] -Wshadow warns about variable names that aren't equal

2008-10-14 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-10-15 01:38 --- Note also that the documentation plainly states: @item -Wshadow @opindex Wshadow @opindex Wno-shadow Warn whenever a local variable shadows another local variable, parameter or global variable or whenever a built-in

[Bug c++/37831] New: -Wshadow warns about variable names that aren't equal

2008-10-14 Thread bangerth at dealii dot org
about variable names that aren't equal Product: gcc Version: 4.2.1 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org Re

[Bug c++/2972] -Wuninitialized could warn about uninitialized member variable usage in constructors

2008-09-10 Thread bangerth at dealii dot org
--- Comment #7 from bangerth at dealii dot org 2008-09-10 15:30 --- Still the same with gcc version 4.4.0 20080801 (experimental) [trunk revision 138448] -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/950] Template problem: decay of pointer-to-member-of-derived to p-o-m-o-base

2008-09-10 Thread bangerth at dealii dot org
--- Comment #12 from bangerth at dealii dot org 2008-09-10 15:26 --- Still happens with gcc version 4.4.0 20080801 (experimental) [trunk revision 138448] -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/37047] Missing warning for deprecated use of static

2008-08-13 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2008-08-13 16:31 --- (In reply to comment #1) > I don't think this is a good warning really as static is used all over the > place. In system headers and really in almost all C++ code in general. The key is the phrase ".

[Bug c++/37070] bogus unreachable warning on throw statement

2008-08-13 Thread bangerth at dealii dot org
--- Comment #5 from bangerth at dealii dot org 2008-08-13 16:27 --- Confirmed. What I believe Andrew was pointing out are the internal reasons why this warning happens. However, the warning is clearly bogus, the flag -Wunreachable-code isn't useful if it warns on this sort of cod

[Bug c++/37087] Segfault on compiling template defined in wrong namespace.

2008-08-13 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2008-08-13 16:24 --- This also failed with 4.2.1, and the reporter's compiler was 4.0. Paolo, do you want to apply your patch to 4.3.x as well? If not, I vote for closing the PR: It's not a recent regression, it's an ICE

[Bug c++/37088] Functions with default parameters not correctly handled inside templates.

2008-08-13 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2008-08-13 16:21 --- (In reply to comment #0) > bool pred4(const char *, const char *, const char *x = "", const char *y = > ""); The type of pred4 is still bool (*) (const char *, const char *, const char *x,

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

2008-08-13 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-08-13 16:17 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added CC

[Bug c++/37116] installing gcc in a non-conventional place has problems finding libstdc++.

2008-08-13 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-08-13 16:14 --- (In reply to comment #0) > By default, I suppose a -Wl,-rpath, would be useful... No, since you can't override that and then you can't use another libstdc++ than the one that comes with the compiler you b

[Bug c++/12242] g++ should warn about out-of-range int->enum conversions

2008-08-07 Thread bangerth at dealii dot org
--- Comment #17 from bangerth at dealii dot org 2008-08-07 13:13 --- (In reply to comment #16) > The expression cannot be very complicated because it needs to be a > INTEGER_CST. Sure, but it can be of the form ~SOME_PREPROCESSOR_MACRO | (MACRO2 ^ MACRO3) What I meant to

[Bug c++/12242] g++ should warn about out-of-range int->enum conversions

2008-08-06 Thread bangerth at dealii dot org
--- Comment #15 from bangerth at dealii dot org 2008-08-07 05:41 --- Hi Manu, just saw your patch for PR 12242 and have a comment: I believe the warning message would be much better if it said *why* the result is unspecified (if the expression being cast is a bit more complicated then

[Bug c++/12242] g++ should warn about out-of-range int->enum conversions

2008-08-06 Thread bangerth at dealii dot org
--- Comment #14 from bangerth at dealii dot org 2008-08-07 05:41 --- Patch now here: http://gcc.gnu.org/ml/gcc-patches/2008-08/msg00436.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12242

[Bug c++/36760] Simple std::bind use causes warnings with -Wextra

2008-07-10 Thread bangerth at dealii dot org
--- Comment #22 from bangerth at dealii dot org 2008-07-10 13:23 --- (In reply to comment #21) > > Two questions: > > 1/ Is the text in the documentation that Dirk Mueller added in the last > > commit > >of PR 30601 now wrong/outdated? > > I don&#

[Bug c++/36760] Simple std::bind use causes warnings with -Wextra

2008-07-09 Thread bangerth at dealii dot org
--- Comment #20 from bangerth at dealii dot org 2008-07-10 03:40 --- (In reply to comment #19) > Fixed for 4.4.0. Thanks a lot! Two questions: 1/ Is the text in the documentation that Dirk Mueller added in the last commit of PR 30601 now wrong/outdated? 2/ Does your patch also

[Bug c++/30601] [4.3 regression] -Wreturn-type warns about more than what the documentation says

2008-07-09 Thread bangerth at dealii dot org
--- Comment #15 from bangerth at dealii dot org 2008-07-10 03:38 --- (In reply to comment #11) > Subject: Re: [4.3 regression] -Wreturn-type warns about more > than what the documentation says > > > > I think this was done on purpose. > > It is contrary t

[Bug c++/36760] Simple std::bind use causes warnings with -Wextra

2008-07-09 Thread bangerth at dealii dot org
--- Comment #15 from bangerth at dealii dot org 2008-07-09 19:22 --- (In reply to comment #14) > Ah, I didn't consider this option! Seems also trivial to implement, just > remove > completely the pt.c version of the warning and keep the one in decl.c. Then, > over the

[Bug c++/36760] Simple std::bind use causes warnings with -Wextra

2008-07-09 Thread bangerth at dealii dot org
--- Comment #10 from bangerth at dealii dot org 2008-07-09 17:04 --- (In reply to comment #8) > I was also trying to raise the issue of whether we think the warning is > useful. > If it's not practical to avoid the warning in the library, then I wonder if > it's

[Bug c++/36749] sizeof returns 0 for class

2008-07-07 Thread bangerth at dealii dot org
--- Comment #5 from bangerth at dealii dot org 2008-07-07 23:36 --- Zero-sized arrays are a GNU extension to the C++ standard. Since the compiler can't know the size of the object, sizeof returns zero. This behavior is documented in the "Extensions" part of the GCC

[Bug c++/36699] not compile code, but must

2008-07-07 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-07-07 23:30 --- Not a bug: type arguments to templates need to be *named* types with external linkage. The declaration of 'x' uses an unnamed structure, the declaration of 'z' a type of function-scope (and so i

[Bug c++/36641] erroneous ambiguous error for subclasses overloaded templated interfaces

2008-07-07 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2008-07-07 23:17 --- Yes, the code is indeed ambiguous. Both icc and pgCC also agree. W. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/33435] internal compiler error with templates and openmp

2008-06-16 Thread bangerth at dealii dot org
--- Comment #5 from bangerth at dealii dot org 2008-06-16 15:03 --- This appears to work for me now with gcc version 4.4.0 20080527 (experimental) [trunk revision 136055] (GCC) Can you check whether it also works for you? W. -- bangerth at dealii dot org changed

[Bug c++/36203] explicit member function template lookup fails from templated function

2008-05-10 Thread bangerth at dealii dot org
--- Comment #11 from bangerth at dealii dot org 2008-05-11 03:32 --- (In reply to comment #10) > VC<6,7,8,9> I suppose that's the compiler you should use then. W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36203

[Bug c++/36203] explicit member function template lookup fails from templated function

2008-05-10 Thread bangerth at dealii dot org
--- Comment #8 from bangerth at dealii dot org 2008-05-11 02:59 --- (In reply to comment #7) > That little bit of ambiguity bothers me a lot less that [...] If that's your opinion, then you've never worked with large software systems. Writing a few this-> here and t

[Bug c++/36203] explicit member function template lookup fails from templated function

2008-05-10 Thread bangerth at dealii dot org
--- Comment #6 from bangerth at dealii dot org 2008-05-11 02:17 --- (In reply to comment #5) > Yet Sun, IBM and Microsoft all somehow manage it. But which function do they take in this case: -- void f(); template struct B { void f(); }; template struct D

[Bug c++/36159] C++ compiler should issue a warning with missing new operator

2008-05-06 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2008-05-07 04:21 --- How is the compiler supposed to know about what alignment malloc can produce? How can it know that ::operator new doesn't increase the alignment automatically? W. -- bangerth at dealii dot org ch

[Bug c++/36149] -O2 optimization generates wrong code

2008-05-06 Thread bangerth at dealii dot org
--- Comment #8 from bangerth at dealii dot org 2008-05-07 04:17 --- The point is: without the complete source code nothing definitive can be said whether it's the compiler's or the programmer's fault. Your chances that someone will take the time to try to understand

[Bug other/36046] Demangler fails on templates with non-type reference parameters

2008-04-25 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2008-04-26 00:25 --- By the way, the return code of __cxa_demangle is -2: mangled_name is not a valid name under the C++ ABI mangling rules. as per http://docs.mandragor.org/files/Programming_languages/Cpp

[Bug other/36046] Demangler fails on templates with non-type reference parameters

2008-04-25 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2008-04-26 00:22 --- Confirmed. The demangler gets a valid symbol it can't demangle. W. -- bangerth at dealii dot org changed: What|Removed |

[Bug c++/36052] New: [4.3/4.4 regression] bogus "type qualifiers ignored" warning

2008-04-25 Thread bangerth at dealii dot org
Status: UNCONFIRMED Keywords: diagnostic Severity: normal 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=36052

[Bug c++/35904] Poor error message

2008-04-14 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-04-14 14:34 --- You are asking for too much. The problem is that in your first example the compiler knows that you want to call the grab() function and therefore can give you an informative error message. But in the second example it

[Bug libgomp/35912] "omp parallel for" wrong result

2008-04-14 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2008-04-14 14:28 --- (In reply to comment #1) > I don't think this is a bug as you did not mark the operations on s > as atomic. Yes, exactly. -- bangerth at dealii dot org changed: What

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

2008-04-14 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-04-14 14:21 --- I too believe that z1.cc is valid. icc accepts it. Not a regression, the code fails back to 2.95. W. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/35929] Argument type of non-member operator->*

2008-04-14 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2008-04-14 14:17 --- Yes. Note that it requires an argument of *class* type, not *pointer to class* type. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35929

[Bug tree-optimization/35787] [4.4 Regression]: Revision 133680 breaks 447.dealII

2008-04-01 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2008-04-01 14:54 --- (In reply to comment #0) > error_estimator.cc: In static member function 'static void > KellyErrorEstimator::integrate_over_irregular_face(const > DoFHandler&, > const Quadrature<(dim - 1)&

[Bug c++/35773] [4.3/4.4 regression] auto_ptr references don't convert

2008-03-31 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-03-31 20:07 --- I tend to think that this should indeed work. Nice self-contained testcase! W. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/33878] Pure virtual method body omitted from template

2008-03-31 Thread bangerth at dealii dot org
--- Comment #5 from bangerth at dealii dot org 2008-03-31 19:54 --- (In reply to comment #0) > The following stripped down code shows pure virtual method definitions for > both > a normal base class and a templated base class. To my surprise, the templated > class&

[Bug c++/33878] Pure virtual method body omitted from template

2008-03-31 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2008-03-31 19:51 --- (In reply to comment #3) > I believe that the main problem here is that GCC allows defining pure virtual > functions. No, that's perfectly legal. W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33878

[Bug c++/35778] Wishlist: To override all C pointers with C++ wrappers

2008-03-31 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-03-31 19:45 --- Maybe so, but gcc only tries to implement what the C++ standard describes. Please take your idea for this extension to the relevant standards committees. -- bangerth at dealii dot org changed: What

[Bug other/35618] [4.3/4.4 regression] ICE in cgraph_estimate_size_after_inlining, at ipa-inline.c:188

2008-03-25 Thread bangerth at dealii dot org
--- Comment #6 from bangerth at dealii dot org 2008-03-25 19:37 --- It appears to work with "gcc version 4.4.0 20080317". Can you see if it works for you as well with a more recent gcc version (either from top-of-tree or the top of the 4.3 branch that you used in your experi

[Bug c++/35650] [4.1/4.2/4.3/4.4 Regression] Can't bind ref-to-function through using-decl. in namespace

2008-03-25 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2008-03-25 19:02 --- Confirmed again. Funny enough, this works: - void f(); namespace N { using ::f; } void h() { void (& b)() = N::f; // not ok void (& c)() = *&N::f; // ok!? } - W. -

[Bug other/35618] [4.3/4.4 regression] ICE in cgraph_estimate_size_after_inlining, at ipa-inline.c:188

2008-03-25 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2008-03-25 18:58 --- I can't reproduce this with tmp/g> /home/bangerth/bin/x86/gcc-mainline/bin/gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../mainline/configure --prefix=/home/bangerth/bin/x86/gcc-

[Bug libstdc++/35622] Cannot declare vector of unordered_maps

2008-03-17 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-03-18 05:12 --- What happens when you do this? And what are the header files you use? -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/35394] Aggressive template instantiation?

2008-03-04 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2008-03-05 02:55 --- This is called two-stage name lookup: when parsing a template all occurrences of "things" that do not depend on the template parameter are bound to their global definitions. Thus, here... > templat

[Bug c++/26266] [4.0/4.1/4.2/4.3/4.4 regression] Trouble with static const data members in template classes

2008-02-27 Thread bangerth at dealii dot org
--- Comment #21 from bangerth at dealii dot org 2008-02-27 16:52 --- Can someone check which of the testcases now work and separate those that don't into PRs of their own? This PR has become a bit confusing. W. -- bangerth at dealii dot org changed: What|Re

[Bug c++/34950] [4.2/4.3 Regression] ICE in svn boost math toolkit

2008-02-12 Thread bangerth at dealii dot org
--- Comment #12 from bangerth at dealii dot org 2008-02-12 08:17 --- The following variant of the testcase in comment #8 is definitely valid but produces an ICE: - template struct policy { typedef int unnecessary; }; template struct A { typedef

[Bug c++/35167] Problem with non-type template parameter and name lookup in template.

2008-02-11 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2008-02-12 06:26 --- Not a bug: The name of a member (static or not) without class qualification can not be used in an address-of expression or decay to a pointer as desired in the current context: 5.19/2: Other expressions are

[Bug c++/35146] [4.1/4.2 regression] weird error in template function specialization

2008-02-10 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2008-02-11 03:38 --- (In reply to comment #3) > While the original testcase works for me on trunk, the testcase in comment #2 > does > not. Or am I missing sth? I see the same behavior with yesterday's svn version. T

[Bug c++/35146] [4.1/4.2 regression] weird error in template function specialization

2008-02-09 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2008-02-10 01:13 --- Confirmed. This was introduced in 3.4.x, and worked before. As Andrew already noted, this has been fixed in mainline. The problem can be more succinctly shown by the following testcase: template

[Bug c++/35140] wrong result due to -O2 optimization in combination with std::list

2008-02-08 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2008-02-08 21:59 --- Can this be reproduced with gcc 4.2.x or current mainline? -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/35138] [4.3 Regression] g++ rejects valid code

2008-02-08 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2008-02-08 21:51 --- This should get higher priority than P3... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35138

[Bug bootstrap/33992] Building libstdc++-v3: include/limits: stray '\275' in program

2008-02-05 Thread bangerth at dealii dot org
--- Comment #13 from bangerth at dealii dot org 2008-02-06 01:19 --- Re-confirmed here: http://gcc.gnu.org/ml/gcc/2008-02/msg00066.html -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/33620] [4.3 regression] internal compiler error: canonical types differ for identical types const QList and const QList

2008-02-01 Thread bangerth at dealii dot org
--- Comment #10 from bangerth at dealii dot org 2008-02-02 04:07 --- Sharad, what compiler version did you use for the new testcases? -- bangerth at dealii dot org changed: What|Removed |Added

[Bug libstdc++/35000] #include sometimes fails in namespaces

2008-01-31 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2008-01-31 14:53 --- This way you make the compiler believe that all the functions are in a namespace when the compiler that compiled these functions into a .dll assumed that they are not. This can't work. -- http://gcc.gn

[Bug c++/33553] [4.1/4.2/4.3 Regression] Bogus "array bound is not an integer constant" for parameter in template method of template class

2008-01-30 Thread bangerth at dealii dot org
--- Comment #8 from bangerth at dealii dot org 2008-01-30 20:26 --- I agree. This is valid and common code and we need to be able to compile it. I would rate this as a blocker. W. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/34927] New: Duplicate error message about abstract class

2008-01-22 Thread bangerth at dealii dot org
NFIRMED Keywords: diagnostic Severity: normal 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=34927

[Bug c++/17729] [4.0/4.1/4.2/4.3 Regression] Duplicate __attribute__((deprecated)) warning

2008-01-22 Thread bangerth at dealii dot org
--- Comment #10 from bangerth at dealii dot org 2008-01-22 22:08 --- The patch was withdrawn. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17729

[Bug c++/13717] duplicated parameter name not caught ?

2008-01-22 Thread bangerth at dealii dot org
--- Comment #9 from bangerth at dealii dot org 2008-01-22 22:06 --- Apparently fixed. -- bangerth at dealii dot org changed: What|Removed |Added Status|NEW

[Bug libstdc++/33486] parallel v3: functions not in right namespace

2008-01-21 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2008-01-21 22:01 --- I don't know. What namespace are the parallel containers in, and what namespace are the parallel algorithms in? W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33486

[Bug c++/34406] [reject valid?] incomplete type 'Y' used in nested name specifier.

2008-01-13 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2008-01-13 16:31 --- (In reply to comment #2) > i'd ask why the first code is invalid? > class Y looks pretty complete so why typedef expression throws an error? A class is complete at the closing brace. You use it befo

[Bug c++/33786] "C" data and static const data members mangled the same

2008-01-12 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2008-01-13 03:12 --- So fixed. This is the error message one would expect. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/33810] gcc 4.1.2 mangles results on x86_64 in bitfield operations

2008-01-12 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-01-13 03:10 --- Confirmed. Here's a slightly simplified testcase: ---bar.h typedef struct { unsigned : 16; unsigned : 16; } foo; ---bar.c #include #include foo bar(unsig

[Bug c++/33821] function with ambiguous covariant return-type is not rejected

2008-01-12 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-01-13 02:49 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added CC

[Bug c++/33885] member reference to a temporary object being deleted too early

2008-01-12 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2008-01-13 02:45 --- Indeed invalid. -- bangerth at dealii dot org changed: What|Removed |Added CC

[Bug c++/34021] Segmentation fault in G++ 4.1.3 with -O2

2008-01-12 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2008-01-13 02:43 --- Confirmed, but fixed in 4.2.x. W. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/34406] [reject valid?] incomplete type 'Y' used in nested name specifier.

2008-01-12 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-01-13 02:33 --- What is the question you want to ask? The first code you show is invalid, the second valid... W. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/34531] local typedef conflicts with global definition of a type having the same name

2008-01-12 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2008-01-13 02:31 --- (In reply to comment #0) > template class X {}; > > class Y { > typedef X X; > }; > > > produces the following error: > redef.cpp:4: error: declaration of 'typedef class X Y::

[Bug c++/34550] reference data template args appear to be broken in 4.2.1 ?

2008-01-12 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2008-01-13 02:29 --- As per Andrew's comment, this is invalid. -- bangerth at dealii dot org changed: What|Removed |

[Bug c++/34603] [4.1/4.2/4.3 regression] ICE with broken template declaration

2008-01-12 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-01-13 02:25 --- Confirmed. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/34624] valid c++ code doesn't compile for x86_64, but for i386

2008-01-12 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-01-13 02:23 --- Can you try to reduce this to something smaller that doesn't require boost? -- bangerth at dealii dot org changed: What|Removed |

[Bug c++/34724] Trouble with friend declaration across namespaces

2008-01-12 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-01-13 02:20 --- Confirmed. The code should be rejected since the friend declaration has only one template parameter, whereas the template has two. W. -- bangerth at dealii dot org changed: What|Removed

[Bug c++/34726] explicit specialization in non-namespace scope strange behavior

2008-01-12 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-01-13 02:17 --- Explicit specializations of member templates need to be declared outside the declaration of the outer class, as per 14.7.3/2. -- bangerth at dealii dot org changed: What|Removed

[Bug c++/34749] Incorrect warning when applying dllimport to friend function

2008-01-12 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-01-13 02:12 --- One could make the argument that the dllimport specifier is a storage-class-specifier which, per 11.4/6 is not allowed on the friend declaration. Since a friend function declaration needs to be preceded by a declaration

[Bug c++/34758] [4.1/4.2/4.3 regression] Bad diagnostic for circular dependency in constructor default argument

2008-01-12 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2008-01-13 02:02 --- If the original warning is ever restored, please make it read circular dependency in default argument instead of the abbreviate language circular dependency in default args W. -- bangerth at dealii dot org

[Bug c++/34696] Overloaded template losing type in invoking a superclass method?

2008-01-07 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2008-01-07 17:34 --- (In reply to comment #0) > o << arg; This line calls the global operator ostream operator<< (ostream, char*) whereas this one > std::ostringstream::operator<<

[Bug libstdc++/34095] parallel mode: segfault in std::sort

2007-12-13 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2007-12-13 22:54 --- By the way, the size of the vector affects whether the testcase fails or not. Apparently the algorithms decide that if the vector is too small then it's not worth subdividing the work. On my 2-processor machine, 2

[Bug libstdc++/34095] parallel mode: segfault in std::sort

2007-12-12 Thread bangerth at dealii dot org
--- Comment #3 from bangerth at dealii dot org 2007-12-12 22:44 --- (In reply to comment #2) > Let's just close it if you can't reproduce now. I'll just try to run > everything > again some time from now and if I have the same problem again I'll re-open.

[Bug libstdc++/34095] parallel mode: segfault in std::sort

2007-12-11 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2007-12-11 20:55 --- (In reply to comment #1) > Hey Wolfgang, I cannot reproduce this: > > g++ -g -O2 -march=native -fopenmp -D_GLIBCXX_PARALLEL 34059.cc > > Seems to run fine for me. I'm using > >

[Bug c++/34049] Parentheses-enclosed expression.

2007-11-14 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2007-11-15 04:35 --- Confirmed with gcc 2.95 and 4.2.1. W. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/34094] Undefined static data member in anonymous namespace can acquire a definition anyway

2007-11-14 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2007-11-15 04:40 --- It may also be that the compiler sees that the store is dead and removes it. Did you check whether the store appears in the assembler output? W. -- bangerth at dealii dot org changed: What|Removed

[Bug c++/34089] [4.1/4.2/4.3 regression] Segfault on specialization using struct instead of template function.

2007-11-14 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2007-11-15 04:38 --- Confirmed, a regression introduced in 4.0.x. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/33990] bug in lookup of member template conversion operator for pointer to member functions

2007-11-14 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2007-11-15 04:33 --- Confirmed with 2.95 and 4.2.1. W. -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/34090] -O3 wrong code, -O2 OK

2007-11-14 Thread bangerth at dealii dot org
--- Comment #5 from bangerth at dealii dot org 2007-11-15 04:26 --- So done. -- bangerth at dealii dot org changed: What|Removed |Added Status|WAITING

[Bug libstdc++/34095] New: parallel mode: segfault in std::sort

2007-11-14 Thread bangerth at dealii dot org
Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bangerth at dealii dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34095

[Bug c++/33839] [4.3 regresssion] ICE with decltype

2007-10-20 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2007-10-20 23:36 --- The code should be invalid precisely because this is also invalid: --- template struct A; void foo() { A<0>; } --- g/x> c++ -c x.cc x.cc: In function 'void foo()&#

[Bug c++/33620] [4.3 regression] internal compiler error: canonical types differ for identical types const QList and const QList

2007-10-19 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2007-10-19 23:54 --- This is the shortest I can come up with: -- template struct __attribute__((visibility("default"))) List {}; int bar(List args); bool test(const List &); int i = bar(List()); bool t

[Bug libstdc++/33489] parallel v3: not default constructible issues

2007-10-18 Thread bangerth at dealii dot org
--- Comment #12 from bangerth at dealii dot org 2007-10-18 18:46 --- Yes, sorry. I meant to report of course that I believe that it works now. Thanks for your work! W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33489

[Bug c++/33744] [4.1/4.2/4.3 regression] function-style cast and '>' not allowed in template argument

2007-10-12 Thread bangerth at dealii dot org
--- Comment #4 from bangerth at dealii dot org 2007-10-12 15:21 --- (In reply to comment #3) > (I'm told that) these two function-style casts compile fine on 4.2.1: > > template > struct A { > }; > > A y; > A z; Uh, indeed, I see. This is weird indeed. S

[Bug c++/33750] initialization of non-integral member constant not rejected

2007-10-12 Thread bangerth at dealii dot org
--- Comment #7 from bangerth at dealii dot org 2007-10-12 15:16 --- This used to be a GCC extension in the old days, which may explain why it isn't rejected by default. I believe it was deprecated several releases ago, you may find something to that effect in release notes.

[Bug c++/33744] function-style cast not allowed in template argument

2007-10-12 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2007-10-12 13:04 --- The rule for template non-type arguments of integral type is 14.3.2/1: 1 A template-argument for a non-type, non-template template-parameter shall be one of: -- an integral constant-expression of integral or

[Bug c++/33744] function-style cast not allowed in template argument

2007-10-12 Thread bangerth at dealii dot org
--- Comment #1 from bangerth at dealii dot org 2007-10-12 12:52 --- It's not the parentheses or the greater-than sign, but the cast that triggers the error. I will have to look up whether a cast is allowed here. For reference, icc accepts the code. W. -- bangerth at dealii do

  1   2   3   4   5   6   7   8   9   10   >