Re: [Bug c++/34015] warning in backward_warning.h is illegible

2007-11-08 Thread Gabriel Dos Reis
manu at gcc dot gnu dot org [EMAIL PROTECTED] writes: | We cannot assume that people encountering the warning will have web access. That is true. But, the majority of for those who do have a web access, we should provide additional pointers. Of course, the real solution is to leave these

Re: [Bug c++/29365] Unnecessary anonymous namespace warnings

2007-08-29 Thread Gabriel Dos Reis
Andrew Pinski [EMAIL PROTECTED] writes: | On 29 Aug 2007 03:15:04 -, bangerth at dealii dot org | [EMAIL PROTECTED] wrote: | It is a good question in itself whether pimpl_ has a type at all -- it's a | pointer to an incomplete type in any case :-) | | All types in C++ are exported (well

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

2007-08-20 Thread Gabriel Dos Reis
ian at airs dot com [EMAIL PROTECTED] writes: | For this simplified code: | | templateint c | char* f1() { if (c == 0) return 0; else return new char[c]; } | char* f2() { return f10(); } | | the C++ frontend issues an unconditional warning. When compiling with no | options, I get | | foo.cc:

Re: [Bug c++/32984] New: add checking for array new delete

2007-08-04 Thread Gabriel Dos Reis
dcb314 at hotmail dot com [EMAIL PROTECTED] writes: | Given the following C++ code | | class K | { | public: | void f(); | void g(); | | private: | int * a; | double * b; | float * c; | unsigned int * d; | }; | | void K :: f() | { | a =

Re: [Bug c++/32984] add checking for array new delete

2007-08-04 Thread Gabriel Dos Reis
dcb314 at hotmail dot com [EMAIL PROTECTED] writes: | The compiler can generate a whole bunch of warnings | already. Which fall in different mindset that the one you would like. -- Gaby

Re: [Bug c++/32525] Request for new warning: useless dynamic_casts

2007-07-14 Thread Gabriel Dos Reis
lloyd at randombit dot net [EMAIL PROTECTED] writes: | I think that's a good definition. My impression is that dynamic_cast is fairly | expensive, well, I don't think GCC should be getting into the business of warning about expensive operations. -- Gaby

Re: [Bug libstdc++/29286] [4.0/4.1/4.2/4.3 Regression] placement new does not change the dynamic type as it should

2007-05-22 Thread Gabriel Dos Reis
mark at codesourcery dot com [EMAIL PROTECTED] writes: | Subject: Re: [4.0/4.1/4.2/4.3 Regression] placement | new does not change the dynamic type as it should | | rguenth at gcc dot gnu dot org wrote: | | - we _cannot_ sink loads across stores. | | x = *int; | *double = 1.0;

Re: [Bug libstdc++/29286] [4.0/4.1/4.2/4.3 Regression] placement new does not change the dynamic type as it should

2007-05-22 Thread Gabriel Dos Reis
mark at codesourcery dot com [EMAIL PROTECTED] writes: | Indeed, consider this: | | // tu-2.C | void f(int*); | void g() { |union { | int i; | double d; |} t; | | t.i = 42; | f(t); | cout t.d endl; | } | | I believe we

Re: [Bug libstdc++/29286] [4.0/4.1/4.2/4.3 Regression] placement new does not change the dynamic type as it should

2007-05-22 Thread Gabriel Dos Reis
mark at codesourcery dot com [EMAIL PROTECTED] writes: | But, I don't think the standard contemplated | these issues in sufficient detail to make it useful in this respect. The issues has been raised on the -core reflector. -- Gaby

Re: [Bug libstdc++/29286] [4.0/4.1/4.2/4.3 Regression] placement new does not change the dynamic type as it should

2007-05-18 Thread Gabriel Dos Reis
ian at airs dot com [EMAIL PROTECTED] writes: | I'm not sure what to make of comment #84. We don't determine aliasing by | alignment or size. We determine it by type. We don't currently treat int and | long as aliasing each other even if they happen to have the same alignment and | size. That

Re: [Bug libstdc++/29286] [4.0/4.1/4.2/4.3 Regression] placement new does not change the dynamic type as it should

2007-05-18 Thread Gabriel Dos Reis
ian at airs dot com [EMAIL PROTECTED] writes: | But I don't think that is the question at hand. The variable is always being | accessed in the same type, which is also the type of its declaration. The | question at hand is this: | | void f(double* p) { *(int*)p = 3; long *l = new (p) long; *l

Re: [Bug c++/31505] [4.3 Regression] Canonical types failures

2007-04-09 Thread Gabriel Dos Reis
bangerth at dealii dot org [EMAIL PROTECTED] writes: | Talking about canonical types: I think the idea of only issuing a warning | in cases like the current one is a really bad idea. Fully agreed. I believe we discussed this on the main list. It should not be a warning. It should be an ICE.

Re: [Bug c++/99] Bug in template type in error message.

2007-03-29 Thread Gabriel Dos Reis
bangerth at dealii dot org [EMAIL PROTECTED] writes: | Still happens with a recent mainline snapshot. This one is tricky. I once had a patch for it, but then the patch broke some other diagnostic. :-( I'll try to revive it. -- Gaby

Re: [Bug c++/31246] Strange -Wunreachable-code warning with _GLIBCXX_DEBUG

2007-03-19 Thread Gabriel Dos Reis
pinskia at gcc dot gnu dot org [EMAIL PROTECTED] writes: | (In reply to comment #10) | | I fully agree. | | I am not agreeing fully, Well, you've got a problem. [...] | What about this case: There is a distinction betwen user code and compiler-generated codes. Warning about

Re: [Bug c++/31187] New: [4.2 regression] extern declaration of variable in anonymous namespace prevents use of its address as template argument

2007-03-16 Thread Gabriel Dos Reis
zak at transversal dot com [EMAIL PROTECTED] writes: | The following code, which compiles fine on gcc 4.1.2 and I believe is valid, | fails on an up-to-date checkout from the 4.2 branch: | | -- | class foo { }; | | namespace | { | extern foo foo1; |

Re: [Bug c++/30734] New: name conflict between class and namespace name is not recognized

2007-02-08 Thread Gabriel Dos Reis
ulrich dot lauther at siemens dot com [EMAIL PROTECTED] writes: | 1 namespace Foo { |2 }; |3 |4 class Foo { |5 }; |6 |7 int main() { |8class Foo1 : public Foo { |9}; | 10Foo1 my_Foo1; | 11Foo my_foo; | 12return 0; | 13 } |

Re: [Bug c++/30245] New: -O2 generates bad code

2006-12-18 Thread Gabriel Dos Reis
dcb314 at hotmail dot com [EMAIL PROTECTED] writes: | I compiled the following C++ code on a x86_64 machine | without optimisation. | | #include iostream.h | | int | main() | { | long long n = 1; | | cout sizeof( n) endl; | for (int i = 0; i 100; ++i) | { |

Re: [Bug libstdc++/29286] [4.0/4.1/4.2 Regression] placement new does not change the dynamic type as it should

2006-10-24 Thread Gabriel Dos Reis
mark at codesourcery dot com [EMAIL PROTECTED] writes: | --- Comment #22 from mark at codesourcery dot com 2006-10-04 05:39 --- | Subject: Re: [4.0/4.1/4.2 Regression] placement new | does not change the dynamic type as it should | | ian at airs dot com wrote: | --- Comment #21

Re: [Bug libstdc++/6257] C-library symbols enter global namespace

2006-04-30 Thread Gabriel Dos Reis
marc dot glisse at normalesup dot org [EMAIL PROTECTED] writes: | (In reply to comment #20) | the | very same source code would not be be portable across those targets. I don't | think we would like that. Besides, more generally, I'm not at all sure that | all the users would actually *like*

Re: Typecast bug

2006-04-27 Thread Gabriel Dos Reis
[EMAIL PROTECTED] writes: | On 26 Apr 2006, Gabriel Dos Reis wrote: | | [EMAIL PROTECTED] writes: | | | It is gcc 4.1.0, --target=arm-elf compiled on an Intel platform and | | GNU/Linux. | | | | The following construct: | | | | void *p; | | | | ((char *)p)++; | | | | makes

Re: Typecast bug

2006-04-26 Thread Gabriel Dos Reis
[EMAIL PROTECTED] writes: | It is gcc 4.1.0, --target=arm-elf compiled on an Intel platform and | GNU/Linux. | | The following construct: | | void *p; | | ((char *)p)++; | | makes the compiler to issue an error message, namely | invalid lvalue in increment | | The ((char *)p) construct

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

2006-04-06 Thread Gabriel Dos Reis
gcc at magfr dot user dot lysator dot liu dot se [EMAIL PROTECTED] writes: | ( As an aside that suggests that you could have a strictly conforming | implementation where the max limit is 0, but that discussion is more fitting on | comp.std.c++) That is technically correct; but it is beside the

Re: [Bug libstdc++/25608] g++ miscompiles gcjx

2006-03-17 Thread Gabriel Dos Reis
bkoz at gcc dot gnu dot org [EMAIL PROTECTED] writes: | is this still an active issue, or was it indicative of some temporary or | transient thing in the gcc sources? Now, I get a segmentation fault -- instead of dead lock. gcjx is compiled with mainline GCC/g++. I was trying to compile

Re: [Bug c++/26395] Wrong attempts to create a copy of an anonymous object

2006-02-21 Thread Gabriel Dos Reis
pinskia at gcc dot gnu dot org [EMAIL PROTECTED] writes: | --- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-21 15:59 --- | Please read: | http://gcc.gnu.org/gcc-3.4/changes.html | | | GCC before 3.4 was accepting invalid code. | | | -- | | pinskia at gcc dot gnu dot org

Re: [Bug c++/25625] [4.0/4.1/4.2 Regression] Fails to compile C++ code when -frepo is specified.

2006-01-27 Thread Gabriel Dos Reis
pault at gcc dot gnu dot org [EMAIL PROTECTED] writes: [...] | URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=110310 | Log: | 2005-01-28 Paul Thomas [EMAIL PROTECTED] | | PR fortran/25964 | * resolve.c (resolve_function): Exclude statement functions from | global

Re: [Bug c++/25927] New: Spurious offsetof warnings with private members

2006-01-23 Thread Gabriel Dos Reis
rcbilson at plg dot uwaterloo dot ca [EMAIL PROTECTED] writes: | Consider: | | #include iostream | #include cstddef | | class xxx { | friend int main(); | void *q; | public: | void *r; | }; | | int main() { | std::cout offset of xxx::q is offsetof( xxx, q ) \n; |

Re: [Bug c++/25845] want optional warning for non-constant declarations that could be constant

2006-01-18 Thread Gabriel Dos Reis
sigra at home dot se [EMAIL PROTECTED] writes: | std::cout static_castunsigned short(t) std::endl; | } | | If static_castconst unsigned short would work, the compiler should warn. given call-by-value, you must be joking. -- Gaby

Re: [Bug c++/25845] want optional warning for non-constant declarations that could be constant

2006-01-18 Thread Gabriel Dos Reis
sigra at home dot se [EMAIL PROTECTED] writes: | --- Comment #8 from sigra at home dot se 2006-01-18 19:29 --- | On Jan 18, 2006, at 11:19 AM, pcarlini at suse dot de wrote: | | --- Comment #4 from pcarlini at suse dot de 2006-01-18 16:19 | --- | (In reply to comment

Re: [Bug c++/25826] New: pure virtual destructors accepted by GCC, but cause link failure

2006-01-17 Thread Gabriel Dos Reis
lloyd at randombit dot net [EMAIL PROTECTED] writes: | The following code: | | class A |{ |public: | virtual ~A() = 0; You still need to *define* the destructor. See ยง12.4/7. -- Gaby

Re: [Bug bootstrap/25455] [4.2 Regression] make all with a native build now does a bootstrap instead of a normal build

2005-12-16 Thread Gabriel Dos Reis
Andrew Pinski [EMAIL PROTECTED] writes: [...] | But he did not which is why there is a bug report. At this moment, I guess the most important thing is that how to make is clarified and Paolo is willing to fix any problem that might result from his change. I'm doing what Daniel J. requested and

Re: [Bug c/25301] New: [3.4 regression] ICE for sizofe of incomplete type

2005-12-07 Thread Gabriel Dos Reis
reichelt at gcc dot gnu dot org [EMAIL PROTECTED] writes: | The testcase gcc.dg/noncompile/920923-1.c causes an ICE on the 3.4 branch. | A reduced testcase is: | | === | typedef struct A B; | int i = sizeof(B); | === | | bug.c:2: error: invalid

Re: [Bug c++/24983] Needs a warning?

2005-11-21 Thread Gabriel Dos Reis
pinskia at gcc dot gnu dot org [EMAIL PROTECTED] writes: | earth:~~/ia32_linux_gcc3_0/bin/gcc t.cc | t.cc:2: prototype for `void foo::f()' does not match any in class `foo' | t.cc:1: candidate is: const void foo::f() | earth:~~/ia32_linux_gcc2_95//bin/gcc t.cc | t.cc:2: new declaration `void

Re: [Bug c++/24103] [3.4 Regression] ICE in simple_cst_equal

2005-10-03 Thread Gabriel Dos Reis
janis187 at us dot ibm dot com [EMAIL PROTECTED] writes: | A regression hunt for the patch that fixed this on mainline identified the | merge of the tree-ssa branch. Thanks. That would indicate that if we're unable to find a minimal patch, then we would just have to close it as WONTFIX. --

Re: [Bug c++/23139] [3.4/4.0/4.1 Regression] -pedantic -ffast-math breaks working code

2005-09-06 Thread Gabriel Dos Reis
mmitchel at gcc dot gnu dot org [EMAIL PROTECTED] writes: | The problem behind both diagnostics fact that the C++ front-end pre-lexes the | entire source file. As a result, the lexing routines, which depends on the | setting of pedantic to determine whether or not to issue errors, are | called

Re: [Bug c++/23689] Malformed typedef silently ignored

2005-09-02 Thread Gabriel Dos Reis
falk at debian dot org [EMAIL PROTECTED] writes: | Works for me with any gcc version: | | [EMAIL PROTECTED]:/tmp% gcc-3.4 -c test.c | test.c:1: warning: useless keyword or type name in empty declaration | test.c:2: warning: useless keyword or type name in empty declaration | | What is the

Re: [Bug c++/23156] New: Fails valid? (valid according to Comeau anyway)

2005-07-31 Thread Gabriel Dos Reis
igodard at pacbell dot net [EMAIL PROTECTED] writes: | typedef int A; | struct foo{ | A A; | }; | | compiles in 3.4.0 and on Comeau, but on 3.4.2 you get: The code is ill-formed; no diagnostic required. GCC-3.x, x 4 used to issue a diagnostic as a QoI. A regression was introduced in 3.4.0,

Re: [Bug c/22278] gcc -O2 discards cast to volatile

2005-07-15 Thread Gabriel Dos Reis
neroden at gcc dot gnu dot org [EMAIL PROTECTED] writes: [...] | of an arbitrary memory address. If the underlying object has | to be volatile, how do we make it volatile? Can we simply create a new | underlying object by throwing in a temporary pointer variable? Is something | like

Re: [Bug c++/22452] [4.1 regression] ICE expected tree that contains 'decl with visibility' structure, have 'const_decl' in decl_linkage, at cp/tree.c:2132

2005-07-14 Thread Gabriel Dos Reis
dberlin at gcc dot gnu dot org [EMAIL PROTECTED] writes: | Nathan tells me it's lk_internal for a CONST_DECL. Where does that come from? There is a section numbered 3.5 and titled Program and linkage. It says in paragraph 4 A name having namespace scope has external linkage if it is the

Re: [Bug c/22485] pointer +- integer is never NULL

2005-07-14 Thread Gabriel Dos Reis
falk at debian dot org [EMAIL PROTECTED] writes: | --- Additional Comments From falk at debian dot org 2005-07-14 15:37 --- | (In reply to comment #7) | | I'm failing to find anything in the C++ standard that suggests that the | following shall be undefined | |

Re: [Bug c++/22452] [4.1 regression] ICE expected tree that contains 'decl with visibility' structure, have 'const_decl' in decl_linkage, at cp/tree.c:2132

2005-07-14 Thread Gabriel Dos Reis
dberlin at dberlin dot org [EMAIL PROTECTED] writes: | --- Additional Comments From dberlin at gcc dot gnu dot org 2005-07-14 20:40 --- | Subject: Re: [4.1 regression] ICE expected tree that | contains 'decl with visibility' structure, have 'const_decl' in | decl_linkage,

Re: [Bug c/22278] gcc -O2 discards cast to volatile

2005-07-03 Thread Gabriel Dos Reis
gdr at integrable-solutions dot net [EMAIL PROTECTED] writes: | | Still, consider the following variant: | | | | void quux(int *bar) { | | *(volatile int*)bar = 42; | | } | | | | volatile int foo; | | quux((int*)foo); | | | | This time there is no attempt [...] to refer to an

Re: [Bug c/22278] gcc -O2 discards cast to volatile

2005-07-02 Thread Gabriel Dos Reis
pinskia at gcc dot gnu dot org [EMAIL PROTECTED] writes: | See PR 21568 and http://gcc.gnu.org/ml/gcc/2005-05/msg00085.html. Both those issues about completely *different* from the issue submitted in this PR. In the above cases, the accessed object actually is NOT volatile. This is not the

Re: [Bug c/22278] gcc -O2 discards cast to volatile

2005-07-02 Thread Gabriel Dos Reis
gcc2eran at tromer dot org [EMAIL PROTECTED] writes: | --- Additional Comments From gcc2eran at tromer dot org 2005-07-02 23:30 --- | (In reply to comment #17) | Furthermore, the fundamental issue is whether this | | *(volatile int*) (int*) (foo); | | (or equivalent) where foo

Re: [Bug c/22278] gcc -O2 discards cast to volatile

2005-07-02 Thread Gabriel Dos Reis
gcc2eran at tromer dot org [EMAIL PROTECTED] writes: | (In reply to comment #30) | | OK. Then the volatile-stripping direction can be handled arbitrarily. | | I do not understand that comment. | | I meant that we were mostly concerned about what the standard says about the | effect of

Re: [Bug c++/22248] New: Incorrect work with multiple assigment.

2005-06-30 Thread Gabriel Dos Reis
algorithmus at gmail dot com [EMAIL PROTECTED] writes: | ---new.cpp | #includecstdio | | #define swap(a,b) a^=b^=a^=b You're modifying objects more than once without intervening sequence points. All bets are off. There is a standard utility std::swap() from utility that works all the time.

Re: [Bug c++/22256] diagnostic shows wrong type for cast operator

2005-06-30 Thread Gabriel Dos Reis
igodard at pacbell dot net [EMAIL PROTECTED] writes: | Gabriel: no, it also happens with any pointer: | | struct node { float*operator float*(); }; | | gets you: | | foo.cc:1: error: operator `float*' declared to return `float' Alright, that was a wrong guess. -- Gaby

Re: [Bug c++/22227] New: g++ 4.0.0 has issues with the typedef of reference

2005-06-28 Thread Gabriel Dos Reis
jcurran2 at uiuc dot edu [EMAIL PROTECTED] writes: | G++ thinks that a nested type is a nested class and it expects a constructor, | destructor, or type conversion before the object referenced in the class is | processed when compiling a function of a nested type defined in the header file |

Re: [Bug libstdc++/22200] numeric_limitssigned::is_modulo is inconsistend with gcc

2005-06-27 Thread Gabriel Dos Reis
pinskia at gcc dot gnu dot org [EMAIL PROTECTED] writes: | Actually it is modulo for all operations. But then do read the comment as far as the loop optimizer is concerned. It does not seem like it understands that it is modulo arithmetic. | and INT_MAX/-1 does not raise a trap. It that is

Re: [Bug c++/22154] New: [DR 382] qualified names should allow typename keyword in front of it (even in non-templates)

2005-06-23 Thread Gabriel Dos Reis
pinskia at gcc dot gnu dot org [EMAIL PROTECTED] writes: | The following should compile according to this DR report (but it is only in ready state so I am going to | confirm it and then suspend it): | class a {}; | typename ::a f(); | | Also the following should not compile as a is not

Re: [Bug c++/21930] New: [4.1 regression] pretty printer confusion

2005-06-06 Thread Gabriel Dos Reis
reichelt at gcc dot gnu dot org [EMAIL PROTECTED] writes: | The error message reads: | | bug.cc: In function 'void foo(const AN) [with int N = 0]': | bug.cc:7: instantiated from here | bug.cc:3: error: no match for 'operator-' in '-((const A0)#'convert_expr' | not supported by

Re: [Bug c++/21837] New: C++/C99 standard violation in for loop

2005-05-31 Thread Gabriel Dos Reis
ahelm at gmx dot net [EMAIL PROTECTED] writes: | C++ standard quote: | | 3.3.2, paragraph 4: | Names declared in the for-init-statement, and in the condition of if, while, | for, and switch statements are local to the if, while, for, or switch statement | (including the controlled statement),

Re: [Bug rtl-optimization/21402] wrong-code with inlining and type-punned pointer

2005-05-21 Thread Gabriel Dos Reis
schlie at comcast dot net [EMAIL PROTECTED] writes: | (In reply to comment #4) | Subject: Re: wrong-code with inlining and type-punned pointer | Because this is what the standard says is allowed. The standard also | says the comparisons and assignment between pointers without a case is |

Re: [Bug c/21664] New: array-of-empty-structure extension not properly defined

2005-05-19 Thread Gabriel Dos Reis
rguenth at gcc dot gnu dot org [EMAIL PROTECTED] writes: | For | | struct {} a[4]; int main() { return a[2] - a[1]; } | | the C frontend emits | | return 0 /[ex] 0; | | which will, at -O0 fault at runtime, at -O not due to RTL CSE. | | Is this even well-defined? No, as you noted below. |

Re: Problem with use of anonymous types

2005-05-07 Thread Gabriel Dos Reis
Andrew Pinski [EMAIL PROTECTED] writes: | On May 6, 2005, at 8:09 PM, Julian Cummings wrote: | | People are reporting trouble compiling blitz with gcc-4.0.0, and the | compiler errors are resulting from the use of unnamed enums. A | simple code | illustrates the problem: | |struct

Re: Problem with use of anonymous types

2005-05-07 Thread Gabriel Dos Reis
Julian Cummings [EMAIL PROTECTED] writes: | Hmmm... I just read through the bug reports you cited. Sounds to me like | this is still somewhat of an open issue, as to whether the compiler should | issue an error in these cases or simply silently discard any templated | function as a possible

Re: [Bug other/21350] configure reports only a warning when bison is not installed

2005-05-03 Thread Gabriel Dos Reis
pinskia at gcc dot gnu dot org [EMAIL PROTECTED] writes: | Are you building from the source tarball or from CVS? | If from the source tarball, you don't need bison which is why it is just a warning. | Otherwise this is a bug in the release process if bison is now required (and a regression). |

Re: [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor

2005-04-30 Thread Gabriel Dos Reis
pinskia at gcc dot gnu dot org [EMAIL PROTECTED] writes: | --- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-01 03:41 --- | We now get: | t.cc:36: warning: __comp_ctor is deprecated (declared at t.cc:18) | | note the extra space. The extra space is part of the name,

Re: Mainline build failure on i686-pc-linux-gnu

2005-04-12 Thread Gabriel Dos Reis
Andrew Pinski [EMAIL PROTECTED] writes: | And what version of the compiler were you starting with? | If it was 4.1.0 between the following patches: | 2005-04-08 Diego Novillo [EMAIL PROTECTED] | | Merge from tree-cleanup-branch: VRP, store CCP, store | copy-prop,

Re: [Bug c++/12879] [3.4 Regression] double error message when using incomplete types in a struct

2005-04-12 Thread Gabriel Dos Reis
cmchugh at callixa dot com [EMAIL PROTECTED] writes: | --- Additional Comments From cmchugh at callixa dot com 2005-04-13 00:56 --- | Broken in 3.4.3 on AIX 5.2; | | $ cat x.cpp | struct Exception { | static void raise () throw (Exception){ throw Exception(); } | }; | $ g++ x.cpp |

Mainline build failure on i686-pc-linux-gnu

2005-04-11 Thread Gabriel Dos Reis
Build of freshly updated mainline tree fails with: /home/gdr/build/4.1/./gcc/xgcc -B/home/gdr/build/4.1/./gcc/ -B/home/gdr/i686-pc- linux-gnu/bin/ -B/home/gdr/i686-pc-linux-gnu/lib/ -isystem /home/gdr/i686-pc-lin ux-gnu/include -isystem /home/gdr/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC -W

Re: Mainline build failure on i686-pc-linux-gnu

2005-04-11 Thread Gabriel Dos Reis
Diego Novillo [EMAIL PROTECTED] writes: | On Mon, Apr 11, 2005 at 10:59:46PM -0500, Gabriel Dos Reis wrote: | | -c /home/gdr/redhat/egcs/gcc/crtstuff.c -DCRT_BEGIN \ |-o crtbegin.o | make[1]: *** [crtbegin.o] Aborted | make[1]: Leaving directory `/home/gdr/build/4.1/gcc' | make

Re: Mainline build failure on i686-pc-linux-gnu

2005-04-11 Thread Gabriel Dos Reis
Gabriel Dos Reis [EMAIL PROTECTED] writes: | Diego Novillo [EMAIL PROTECTED] writes: | | | On Mon, Apr 11, 2005 at 10:59:46PM -0500, Gabriel Dos Reis wrote: | | | | -c /home/gdr/redhat/egcs/gcc/crtstuff.c -DCRT_BEGIN \ | |-o crtbegin.o | | make[1]: *** [crtbegin.o] Aborted | | make[1

Re: [Bug c++/20734] New: rejects valid pointer to member

2005-04-02 Thread Gabriel Dos Reis
sstrasser at systemhaus-gruppe dot de [EMAIL PROTECTED] writes: | error: cannot convert 'int*' to 'int A::*' for argument '1' to 'void blah(int A::*)' This is clearly a bug in GCC. -- Gaby

Re: [Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-26 Thread Gabriel Dos Reis
bangerth at dealii dot org [EMAIL PROTECTED] writes: | Well, I wanted to give an inuitive reasoning. I understood that; I just don't think they are conclusive :-) | On the other hand, how do you propose to make up a unique name if an | unnamed enum is used in two different translation units

Re: aren't specialized templates templates?

2005-02-12 Thread Gabriel Dos Reis
- | | | --- | ciaoTJ | -- Gabriel Dos Reis [EMAIL PROTECTED]

Re: [Bug c++/19737] typename requirement error

2005-02-01 Thread Gabriel Dos Reis
gianni at mariani dot ws [EMAIL PROTECTED] writes: | BTW - gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) accepts the | code, would this be a regression ? Previous versions of GCC did not quite understand the notion of inject class name and would erroneously accept things like struct A

Re: [Bug java/19738] gcjh generates invalid class member floating-point initialisers

2005-02-01 Thread Gabriel Dos Reis
giovannibajo at libero dot it [EMAIL PROTECTED] writes: [...] | In fact, I personally use this to expose constants without linkage: | | struct A { |enum { a = 45 }; | }; agree. | but with floating point numbers you are out of luck. Indeed. -- Gaby

Re: [Bug preprocessor/9449] UCNs not recognized in identifiers (c++/c99)

2005-01-07 Thread Gabriel Dos Reis
joseph at codesourcery dot com [EMAIL PROTECTED] writes: | I've now sent it to c++std-compat (having checked that the C++ list of | characters also includes combining characters in more than one combining | class so the same issues can arise there at least in principle, whether or | not they

Re: bug in /usr/include/c++/3.4/bits/fstream.tcc

2004-12-09 Thread Gabriel Dos Reis
Jacob Schmidt Madsen [EMAIL PROTECTED] writes: | error: | /usr/include/c++/3.4/bits/fstream.tcc: In member function `virtual | typename std::basic_filebuf_CharT, _Traits::int_type | std::basic_filebuf_CharT, _Traits::underflow()': | /usr/include/c++/3.4/bits/fstream.tcc:277: error: expected |

Re: complex numbers

2004-12-07 Thread Gabriel Dos Reis
Andreas Klein [EMAIL PROTECTED] writes: | On Mon, 6 Dec 2004, Gabriel Dos Reis wrote: | | | As a matter of fact, the implementation of complex is criticized, | once in a while, because it does NOT use the grammar school rule you | present above. However, for float, double, long double

Re: complex numbers

2004-12-07 Thread Gabriel Dos Reis
Andreas Klein [EMAIL PROTECTED] writes: | This look like a good deal. However for floting point computations I | prevere good results over fast results. You're in the minority (including me :-)). -- Gaby

Re: complex numbers

2004-12-06 Thread Gabriel Dos Reis
Andreas Klein [EMAIL PROTECTED] writes: | Hello | | I have found a bug in the implementation of the complex library of | g++ and the complex.h library of the gcc (c99 support). | | The simplest program that demonstrates the bug is: | | | | #includeiostream |

Re: [Bug c++/18514] [3.4/4.0 Regression] Alternate asm name ignored for redeclared builtin function imported into namespace std

2004-11-30 Thread Gabriel Dos Reis
austern at apple dot com [EMAIL PROTECTED] writes: | So what to do about this? In principle, I think the answer is that | builtin_function is doing something wrong by calling | builtin_function_1 twice, once for the global namespace and once for | namespace std. If we really must define all

Re: [Bug libstdc++/18644] [3.3/3.4/4.0 regression] -Wsynth warning in complex

2004-11-26 Thread Gabriel Dos Reis
bangerth at ices dot utexas dot edu [EMAIL PROTECTED] writes: | The diagnostic is nonsensical. The fix is to fix the diagnostic, not | to paper over the problem. | | That's certainly the best solution. -Wsynth should just not trigger in | libstdc++ headers. yes, and even more in user codes

Re: [Bug fortran/18584] --std=f would be nice

2004-11-22 Thread Gabriel Dos Reis
pinskia at gcc dot gnu dot org [EMAIL PROTECTED] writes: | Oh, by the way how can they trademark a single letter. Ignorance? -- Gaby

Bad compile time complexity for large files ??? (fwd)

2004-11-10 Thread Gabriel Dos Reis
Hoeven [EMAIL PROTECTED] http://www.texmacs.org: GNU TeXmacs scientific text editor http://www.math.u-psud.fr/~vdhoeven: personal homepage --- ---End Message--- -- Gabriel Dos Reis

Re: [Bug c++/16514] New: no warning of non-virtual dtor in subclass

2004-07-13 Thread Gabriel Dos Reis
naiman at math dot jct dot ac dot il: Dear G++ Folk, An astute student found the following example: vv class foo1 { public: virtual void f1 (void) {} virtual ~foo1 (void); }; class foo2 : public foo1 { public: ~foo2 (void); };

Re: [Bug libstdc++/9679] Strange behaviour of valarray::apply method

2004-03-19 Thread Gabriel Dos Reis
pcarlini at suse dot de [EMAIL PROTECTED] writes: | Gaby, could you please provide an update about this PR? I think I gave all necessary information in the initial analysis I made. Did you find something is out of date? Personally, I would resolve this as won't fix, or at least suspend. There