[Bug c++/28840] internal compiler error

2006-08-24 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2006-08-25 04:10 --- possibly PR 28358 and/or PR 28116 -- fang at csl dot cornell dot edu changed: What|Removed |Added

[Bug c++/28863] ICE on template class with visibility specification

2006-08-27 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2006-08-27 07:45 --- Looks recently fixed by patch for PR 28659. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28863

[Bug c++/28895] 'friend' accepts typedef-name.

2006-08-29 Thread fang at csl dot cornell dot edu
--- Comment #3 from fang at csl dot cornell dot edu 2006-08-29 23:23 --- Hi, see PR 21498. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28895

[Bug c++/29043] Constructor for POD type with const member without member initializer accepted

2006-09-12 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2006-09-13 03:00 --- As you've written it, class C doesn't have any non-static members. Struct C::s hasn't been declared as a member object of C. const int i is a member of C::s, not C, so C() without member initializers should

[Bug c++/29123] accepts typedef as elaborated type specifier in friend declaration

2006-09-18 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2006-09-18 23:38 --- Motion to dupe as PR 21498. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29123

[Bug c++/20599] variadic template support

2006-09-24 Thread fang at csl dot cornell dot edu
--- Comment #10 from fang at csl dot cornell dot edu 2006-09-25 03:46 --- Subject: Re: variadic template support | For the record, personally and for what is worth my personal opinion | in the compiler area, I have nothing against adding to the compiler | -std=c++0x We should

[Bug c++/29503] Internal Compiler Error with Friend + Template + Typedef

2006-10-18 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2006-10-18 20:25 --- That would be PR 21498. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29503

[Bug c++/28358] ICE on valide template code using -O1 or -O2, but *not* with -O0 or -O3

2006-10-19 Thread fang at csl dot cornell dot edu
--- Comment #3 from fang at csl dot cornell dot edu 2006-10-19 18:03 --- ping? ice-on-valid in boost -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28358

[Bug c++/28088] [4.1 Regression] Internal compiler error on boost mpl test/apply.cpp

2006-10-22 Thread fang at csl dot cornell dot edu
--- Comment #12 from fang at csl dot cornell dot edu 2006-10-23 03:34 --- Subject: Re: [4.1 Regression] Internal compiler error on boost mpl test/apply.cpp There were PRs that showed that this extension (for those who don't remember: we allowed to match templates with trailing

[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)

2006-10-26 Thread fang at csl dot cornell dot edu
--- Comment #10 from fang at csl dot cornell dot edu 2006-10-26 16:57 --- This is also exactly what I see happening on a G4 build of the same 4.2 snapshot. It tries to build a multilib for fortran. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26814

[Bug bootstrap/26814] Bootstrapping with a non default ABI (-m64 on ppc-darwin or on ppc-linux with a compiler defaulting to 32 and now defaulting to 64)

2006-10-27 Thread fang at csl dot cornell dot edu
--- Comment #14 from fang at csl dot cornell dot edu 2006-10-27 18:14 --- Perhaps other directories need regen., according to Mike, the following are outdated (as of 4.2-20061024): http://gcc.gnu.org/ml/gcc/2006-10/msg00578.html libdecnumber/aclocal.m4 zlib/aclocal.m4 intl/aclocal.m4

[Bug libstdc++/29688] resize initializes whole array

2006-11-02 Thread fang at csl dot cornell dot edu
--- Comment #5 from fang at csl dot cornell dot edu 2006-11-03 07:28 --- There is no argument against the ISO standard, but to a non C/C++ programmer it seems a waist of time to reallocate the array and initialize it when one wants to add something to an array. Some other

[Bug c++/29757] Non-ISO template qualifiers

2006-11-08 Thread fang at csl dot cornell dot edu
--- Comment #4 from fang at csl dot cornell dot edu 2006-11-08 19:32 --- If you want to reject extern templates (and enforce more standard-conformance in general), add -ansi -pedantic-errors to your CXXFLAGS. -- fang at csl dot cornell dot edu changed: What

[Bug c++/29787] std::vector can access negative value (std runtime bug?)

2006-11-09 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2006-11-09 23:37 --- If you want bounds checking on std::vector, use the at() member function in place of operator[]. Otherwise, the overloaded operator[] is unchecked and just does a plain indexed-array reference. (If it is out

[Bug c++/19948] [4.0/4.1 Regression] ICE: tree check: expected class 'declaration', have 'exceptional' (error_mark) in pushtag, at cp/name-lookup.c:4658

2005-02-26 Thread fang at csl dot cornell dot edu
--- Additional Comments From fang at csl dot cornell dot edu 2005-02-27 06:25 --- 1) Has anyone figured out a workaround to this yet? I suppose I could remove some using namespace declarations and prefix type names with namespaces... I'll keep tinkering around. 2) New

[Bug c++/19948] [4.0/4.1 Regression] ICE: tree check: expected class 'declaration', have 'exceptional' (error_mark) in pushtag, at cp/name-lookup.c:4658

2005-02-26 Thread fang at csl dot cornell dot edu
--- Additional Comments From fang at csl dot cornell dot edu 2005-02-27 06:53 --- Workaround discovered (shortly after I asked for one, fancy that!) Declaring: using util::persistent_object_manager; inside the 'memory' namespace before the first friend declaration (after line

[Bug c++/20234] New: incorrect error: class has not been declared

2005-02-27 Thread fang at csl dot cornell dot edu
Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fang at csl dot cornell dot edu CC: gcc-bugs at gcc dot gnu

[Bug c++/21227] New: [4.1 regression] internal compiler error: in compare_values, at tree-vrp.c:292

2005-04-25 Thread fang at csl dot cornell dot edu
dot gnu dot org ReportedBy: fang at csl dot cornell dot edu CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21227

[Bug c++/21227] [4.1 regression] internal compiler error: in compare_values, at tree-vrp.c:292

2005-04-25 Thread fang at csl dot cornell dot edu
--- Additional Comments From fang at csl dot cornell dot edu 2005-04-25 23:48 --- Created an attachment (id=8739) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8739action=view) test-case causing ICE -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21227

[Bug c++/21227] [4.1 regression] internal compiler error: in compare_values, at tree-vrp.c:292

2005-04-25 Thread fang at csl dot cornell dot edu
--- Additional Comments From fang at csl dot cornell dot edu 2005-04-26 00:04 --- Damn, you guys are fast! I just checked for this bug on bugzilla *yesterday*, and it didn't show up then. In the 'sliver' of time between when I discovered it, and when I submitted a prepared report

[Bug target/26385] New: 4.1 RC1 build failure on nm -P command (darwin7)

2006-02-20 Thread fang at csl dot cornell dot edu
: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fang at csl dot cornell dot edu GCC host triplet: powerpc-apple-darwin7 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26385

[Bug target/26385] 4.1 RC1 build failure on nm -P command (darwin7)

2006-02-20 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2006-02-20 19:37 --- Subject: Re: 4.1 RC1 build failure on nm -P command (darwin7) You don't have the correct nm in your path so this is not a bug. GCC requires a full install of cctools 590.12 to be install and accessible

[Bug c++/24243] [4.0 regression] lookup fails to match to function call, const-sensitive

2006-03-11 Thread fang at csl dot cornell dot edu
--- Comment #8 from fang at csl dot cornell dot edu 2006-03-11 22:10 --- Housekeeping: re-classify as invalid? I wasn't able to find an accepts-invalid version of this bug in the database for reference. That bug would've been fixed sometime between 4.0.1 and 4.0.2. -- http

[Bug target/26662] New: optimization on hashtable iterator produces bad code

2006-03-12 Thread fang at csl dot cornell dot edu
Version: 3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fang at csl dot cornell dot edu GCC host triplet: powerpc-apple-darwin7 http

[Bug target/26662] optimization on hashtable iterator produces bad code

2006-03-12 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2006-03-13 07:25 --- Created an attachment (id=11037) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11037action=view) preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26662

[Bug target/26662] optimization on hashtable iterator produces bad code

2006-03-13 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2006-03-13 08:47 --- forgot to add: works with i686-suse-linux g++-3.3.3 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26662

[Bug target/26662] optimization on hashtable iterator produces bad code

2006-03-13 Thread fang at csl dot cornell dot edu
--- Comment #5 from fang at csl dot cornell dot edu 2006-03-13 20:51 --- Filed to Apple. For the record, this is Bug #4476031 on the Radar, for those who might have access. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26662

[Bug target/26662] optimization on hashtable iterator produces bad code

2006-03-13 Thread fang at csl dot cornell dot edu
--- Comment #4 from fang at csl dot cornell dot edu 2006-03-13 20:21 --- (In reply to comment #3) You should report this to apple, because as 4.0 and 4.1 are not affected and both the 3.3 and the 3.4 branch are now closed, this PR will be just closed as fixed. Ok, I accept

[Bug bootstrap/26718] Bootstrap 4.1.0 fails on Apple Power G5

2006-03-16 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2006-03-16 21:39 --- Looks like my problem from PR 26385, but I was trying to use odcctools' nm. Is GNU binutils' nm also suitable? -- fang at csl dot cornell dot edu changed: What|Removed

[Bug c++/27178] Failure to recognize template default type argument

2006-04-16 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2006-04-16 18:41 --- Hi, see first bullet under http://gcc.gnu.org/gcc-4.2/changes.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27178

[Bug c++/27178] Failure to recognize template default type argument

2006-04-16 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2006-04-16 18:51 --- I meant first bullet under C++, of course. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27178

[Bug c++/27519] Another's class destructor name

2006-05-09 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2006-05-09 18:34 --- With the following reduced case: //-8 snip 8- class TPoints { public: ~TPoints(); }; class TPoligon: public TPoints { public: ~TPoligon(); }; TPoints::~TPoligon() { } TPoints::~TPoints

[Bug c++/27591] Compiler crash with typeid(typeid(*a))

2006-05-13 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2006-05-13 21:01 --- Very reminiscent of PR 25357. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27591

[Bug c++/26912] [4.0 Regression] friend const member function specialization fails to compile

2006-05-24 Thread fang at csl dot cornell dot edu
--- Comment #8 from fang at csl dot cornell dot edu 2006-05-25 03:39 --- Subject: Re: [4.0 Regression] friend const member function specialization fails to compile --- Comment #7 from mmitchel at gcc dot gnu dot org 2006-05-25 02:31 --- Will not be fixed in 4.1.1

[Bug bootstrap/28124] Cannot build gcc on OSX 10.4 G6

2006-06-21 Thread fang at csl dot cornell dot edu
--- Comment #4 from fang at csl dot cornell dot edu 2006-06-21 20:32 --- My heart skipped a beat when you said G6! *sigh* -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28124

[Bug bootstrap/28124] Cannot build gcc on OSX 10.4 G6

2006-06-21 Thread fang at csl dot cornell dot edu
--- Comment #6 from fang at csl dot cornell dot edu 2006-06-21 20:49 --- Subject: Re: Cannot build gcc on OSX 10.4 G6 --- Comment #5 from pinskia at gcc dot gnu dot org 2006-06-21 20:33 --- (In reply to comment #4) My heart skipped a beat when you said G6! *sigh

[Bug c++/28211] New: wrong linkage of template argument, diagnostic could be improved

2006-06-30 Thread fang at csl dot cornell dot edu
Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fang at csl dot cornell dot edu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28211

[Bug c++/21498] clause 7.1.5.3/2 of the c++ is not enforced

2006-06-30 Thread fang at csl dot cornell dot edu
--- Comment #3 from fang at csl dot cornell dot edu 2006-07-01 01:06 --- Tripped over this bug while testing some code against ICPC... almost filed a dupe! Using the test case from PR 23385, still reproducible (accepts-invalid) on mainline g++ 4.2.0-20060610. I'd like to understand

[Bug c++/21498] clause 7.1.5.3/2 of the c++ is not enforced

2006-07-02 Thread fang at csl dot cornell dot edu
--- Comment #7 from fang at csl dot cornell dot edu 2006-07-02 17:37 --- Subject: Re: clause 7.1.5.3/2 of the c++ is not enforced Would it be appropriate to prefix [DR 68] to the subject? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21498

[Bug c++/28365] error: ' error: 'MyClass::MyClass(const MyClass)' is private error: within this context

2006-07-13 Thread fang at csl dot cornell dot edu
--- Comment #4 from fang at csl dot cornell dot edu 2006-07-13 22:06 --- Subject: Re: error: ' error: 'MyClass::MyClass(const MyClass)' is private error: within this context --- Comment #3 from kk at microfocus dot com 2006-07-13 21:49 --- (In reply to comment #2

[Bug c++/28025] [4.1/4.2 Regression] multiple template friend compile error

2006-07-16 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2006-07-17 02:56 --- known to work: 4.0.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28025

[Bug c++/25260] [4.0/4.1/4.2 Regression] Forward explicit intantiation declaration doesn't mix well with static integral member

2005-12-20 Thread fang at csl dot cornell dot edu
--- Comment #5 from fang at csl dot cornell dot edu 2005-12-20 16:27 --- Subject: Re: [4.0/4.1/4.2 Regression] Forward explicit intantiation declaration doesn't mix well with static integral member --- Comment #3 from nicos at maunakeatech dot com 2005-12-20 09:20 --- I

[Bug c++/19948] New: ICE: tree check: expected class 'declaration', have 'exceptional' (error_mark) in pushtag, at cp/name-lookup.c:4658

2005-02-13 Thread fang at csl dot cornell dot edu
Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fang at csl dot cornell dot edu CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19948

[Bug c++/17981] New: parse error on template method of template class

2004-10-13 Thread fang at csl dot cornell dot edu
ReportedBy: fang at csl dot cornell dot edu CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: * GCC host triplet: * GCC target triplet: * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17981

[Bug c++/17981] parse error on template method of template class

2004-10-13 Thread fang at csl dot cornell dot edu
--- Additional Comments From fang at csl dot cornell dot edu 2004-10-13 21:14 --- Subject: Re: parse error on template method of template class Thank you for the feedback. How come when I searched for the keywords parse error template method on bugzilla, I get the infamous `Zarro

[Bug other/18559] New: apple's gcc-3.3 -fast causes bus error

2004-11-18 Thread fang at csl dot cornell dot edu
-3.3 -fast causes bus error Product: gcc Version: 3.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fang at csl dot cornell dot edu

[Bug other/18559] apple's gcc-3.3 -fast causes bus error

2004-11-19 Thread fang at csl dot cornell dot edu
--- Additional Comments From fang at csl dot cornell dot edu 2004-11-19 16:52 --- Subject: Re: apple's gcc-3.3 -fast causes bus error Thanks, found their bug-site, I'll pass it on to them. --- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-19 14:29

[Bug libstdc++/23358] _Destroy doesn't optimize for scalar types

2005-08-12 Thread fang at csl dot cornell dot edu
-- What|Removed |Added CC||fang at csl dot cornell dot ||edu http://gcc.gnu.org/bugzilla

[Bug c++/23372] Temporary aggregate copy not elided when passing parameters by value

2005-08-13 Thread fang at csl dot cornell dot edu
-- What|Removed |Added CC||fang at csl dot cornell dot ||edu http://gcc.gnu.org/bugzilla

[Bug libstdc++/23425] vector::clear should be manually inlined

2005-08-16 Thread fang at csl dot cornell dot edu
-- What|Removed |Added CC||fang at csl dot cornell dot ||edu http://gcc.gnu.org/bugzilla

[Bug libstdc++/23767] std::vector iterator implementation wrong

2005-09-07 Thread fang at csl dot cornell dot edu
-- What|Removed |Added CC||fang at csl dot cornell dot ||edu http://gcc.gnu.org/bugzilla

[Bug c++/23849] New: inaccessible base in static_cast from template base type to non-template derived type

2005-09-13 Thread fang at csl dot cornell dot edu
++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fang at csl dot cornell dot edu CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23849

[Bug c++/23849] inaccessible base in static_cast from template base type to non-template derived type

2005-09-13 Thread fang at csl dot cornell dot edu
--- Additional Comments From fang at csl dot cornell dot edu 2005-09-13 07:57 --- correction: g++ 3.3.3 (FSF, i386-linux) *rejects* the test case with the same error message. That should narrow down the search to somewhere in the 3.3 series. -- http://gcc.gnu.org/bugzilla

[Bug c++/23227] SFINAE bug

2005-09-18 Thread fang at csl dot cornell dot edu
-- What|Removed |Added CC||fang at csl dot cornell dot ||edu http://gcc.gnu.org/bugzilla

[Bug c++/24243] New: [4.0 regression] lookup fails to match to function call, const-sensitive

2005-10-06 Thread fang at csl dot cornell dot edu
to function call, const-sensitive Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fang at csl dot

[Bug c++/24243] [4.0 regression] lookup fails to match to function call, const-sensitive

2005-10-06 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2005-10-06 19:22 --- Created an attachment (id=9912) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9912action=view) test case triggering bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24243

[Bug c++/24243] [4.0 regression] lookup fails to match to function call, const-sensitive

2005-10-06 Thread fang at csl dot cornell dot edu
--- Comment #3 from fang at csl dot cornell dot edu 2005-10-06 20:30 --- Subject: Re: [4.0 regression] lookup fails to match to function call, const-sensitive --- Comment #2 from pinskia at gcc dot gnu dot org 2005-10-06 19:48 --- Here is the reduced testcase: template

[Bug c++/24243] [4.0 regression] lookup fails to match to function call, const-sensitive

2005-10-06 Thread fang at csl dot cornell dot edu
--- Comment #4 from fang at csl dot cornell dot edu 2005-10-06 21:28 --- Subject: Re: [4.0 regression] lookup fails to match to function call, const-sensitive Something else puzzling to me, that I noticed from your reduction: Why is the compiler always matching the non-const version

[Bug c++/24243] [4.0 regression] lookup fails to match to function call, const-sensitive

2005-10-06 Thread fang at csl dot cornell dot edu
--- Comment #6 from fang at csl dot cornell dot edu 2005-10-06 21:47 --- I now second your opinions that this is invalid. Upon closer examination, what I *should've* written to make this code valid is the following: template class R, template class class P, class T, class A inline

[Bug c++/24243] [4.0 regression] lookup fails to match to function call, const-sensitive

2005-10-06 Thread fang at csl dot cornell dot edu
--- Comment #7 from fang at csl dot cornell dot edu 2005-10-06 23:38 --- Created an attachment (id=9913) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9913action=view) corrected header file Just as a follow-up, here's what the new valid header file looks like, with all

[Bug c++/24667] New: -Wcast-qual fails to reject offending cast

2005-11-03 Thread fang at csl dot cornell dot edu
Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fang at csl dot cornell dot edu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24667

[Bug c++/24667] -Wcast-qual fails to reject offending cast

2005-11-03 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2005-11-04 07:47 --- also known to work: 3.4.0 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24667

[Bug c++/24667] [4.0/4.1 Regression] -Wcast-qual fails to reject offending cast for a old style cast

2005-11-04 Thread fang at csl dot cornell dot edu
--- Comment #3 from fang at csl dot cornell dot edu 2005-11-04 17:56 --- Am I correct in expecting that const_cast... should pass -Wcast-qual without warning? That's the way I use it (in the few and rare cases that demand it) and it's met my expectations thus far. I'm kind

[Bug c++/29939] Please implement rvalue references

2006-11-22 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2006-11-22 15:07 --- There was some (suspended) discussion about support for rvalue references in PR 24803. Is there a plan for them somewhere in the pipeline? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29939

[Bug preprocessor/30001] out-of-bounds access when processing empty file

2006-11-27 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2006-11-27 20:49 --- Is this related to the standard requirement that a source file must end with a newline character? (and thus cannot be empty?) -- fang at csl dot cornell dot edu changed: What|Removed

[Bug tree-optimization/30000] dummy to get 30,000

2006-11-27 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2006-11-27 20:52 --- Funny, I was thinking the same thing, but you snooze, you lose... -- fang at csl dot cornell dot edu changed: What|Removed |Added

[Bug c++/29939] Add rvalue references (C++0x)

2006-11-29 Thread fang at csl dot cornell dot edu
--- Comment #4 from fang at csl dot cornell dot edu 2006-11-29 19:00 --- Subject: Re: Add rvalue references (C++0x) On 29 Nov 2006, hhinnant at apple dot com wrote: --- Comment #3 from hhinnant at apple dot com 2006-11-29 18:36 --- Recent work: http://mndfck.org

[Bug c++/30248] regression: friend no longer declares classes

2006-12-18 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2006-12-18 17:07 --- ARM-style friend-injection of names into the parent namespaces has been removed since gcc-4.1, as noted in: http://gcc.gnu.org/gcc-4.1/changes.html You should add a forward declaration class Bar; before

[Bug c++/30340] pure virtual function called on const declared with previous declaration without a definition, const assigned by temporary

2007-01-01 Thread fang at csl dot cornell dot edu
--- Comment #6 from fang at csl dot cornell dot edu 2007-01-01 16:42 --- You can confirm the lifetime of B() by printing something during its destruction, and during the constructor of C. You'll be left with a dangling reference to a temporary whose vptr has been invalidated, hence

[Bug c++/30376] aspell-0.60.5 fails to build with -O3 on gcc-4.1.2 20061222 (prerelease)

2007-01-05 Thread fang at csl dot cornell dot edu
--- Comment #3 from fang at csl dot cornell dot edu 2007-01-05 20:11 --- I've checked out the latest aspell-0.60.5 and found the same thing using a 4.2 prerelease with -O3. This is not gcc's problem, as this can (and should) be easily fixed in their source with an additional explicit

[Bug driver/30491] behaviour with -MMD and -c / -E causes differring behaviours.

2007-01-17 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-01-17 20:39 --- The problem with passing -E -o ... is that gcc has to assume the default output object as the target, which strips the directory from the name, since -o is used for the resulting .i file. That is what -MT

[Bug libfortran/30518] failed to build libgfortran in gcc-4.3-20070119 on OSX 10.3.9

2007-01-20 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2007-01-20 22:00 --- In sys/resource.h (Darwin), near the beginning, you'll see some ifndef business for struct timeval (the type of ru_utime and ru_stime). It looks to be protected by the _TIMEVAL macro. Somehow that is evaluating

[Bug libfortran/30518] failed to build libgfortran in gcc-4.3-20070119 on OSX 10.3.9

2007-01-20 Thread fang at csl dot cornell dot edu
--- Comment #3 from fang at csl dot cornell dot edu 2007-01-20 22:05 --- Subject: Re: failed to build libgfortran in gcc-4.3-20070119 on OSX 10.3.9 --- Comment #2 from fang at csl dot cornell dot edu 2007-01-20 22:00 --- In sys/resource.h (Darwin), near the beginning

[Bug libfortran/30518] failed to build libgfortran in gcc-4.3-20070119 on OSX 10.3.9

2007-01-20 Thread fang at csl dot cornell dot edu
--- Comment #5 from fang at csl dot cornell dot edu 2007-01-20 23:11 --- Subject: Re: failed to build libgfortran in gcc-4.3-20070119 on OSX 10.3.9 --- Comment #4 from dominiq at lps dot ens dot fr 2007-01-20 22:52 --- Subject: Re: failed to build libgfortran in gcc

[Bug c++/30716] recursive templates compilation fault

2007-02-06 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-02-07 00:32 --- Ahh, exploding recursive templates... For future reference, you could limit the recursion depth explicitly, using -ftemplate-depth-n from a gcc-3.4.0 man page: Set the maximum instantiation depth for template

[Bug c++/30725] compile error when meet with ((A()()))

2007-02-06 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-02-07 05:04 --- Workaround: if (A().operator()()) { } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30725

[Bug c++/30725] compile error when meet with ((A()()))

2007-02-06 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2007-02-07 05:05 --- looks familiar: PR 29234 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30725

[Bug middle-end/23237] [4.1 Regression] -O1 rejects valid code (xxx causes a section type conflict).

2007-02-12 Thread fang at csl dot cornell dot edu
--- Comment #14 from fang at csl dot cornell dot edu 2007-02-12 17:31 --- I'm seeing some failures with 4.1.2-RC2 on test case pr23237.c on powerpc7400-apple-darwin8, posted: http://gcc.gnu.org/ml/gcc-testresults/2007-02/msg00475.html Are these known/expected/new? -- fang at csl

[Bug c++/29939] Add rvalue references (C++0x)

2007-02-21 Thread fang at csl dot cornell dot edu
--- Comment #6 from fang at csl dot cornell dot edu 2007-02-21 20:26 --- Subject: Re: Add rvalue references (C++0x) --- Comment #5 from hhinnant at apple dot com 2007-02-21 20:17 --- Russell Yanofsky has submitted a patch implementing N2118: http://gcc.gnu.org/ml/gcc

[Bug c++/29164] Overloaded operator delete[] doesn't get called

2007-03-08 Thread fang at csl dot cornell dot edu
--- Comment #5 from fang at csl dot cornell dot edu 2007-03-08 21:49 --- Ouch, this one seems particularly nasty to me... seeings as this isn't a regression (at least from 2.95), I don't expect this to be fixed for 4.2. Is there any chance of this getting attention on the (4.3

[Bug c++/29164] Overloaded operator delete[] doesn't get called

2007-03-08 Thread fang at csl dot cornell dot edu
--- Comment #6 from fang at csl dot cornell dot edu 2007-03-08 22:58 --- Subject: Re: Overloaded operator delete[] doesn't get called This following test case is 'interesting': 8 snip 8- #include iostream using std::cout; class one_array_only

[Bug c++/29164] Overloaded operator delete[] doesn't get called

2007-03-08 Thread fang at csl dot cornell dot edu
--- Comment #7 from fang at csl dot cornell dot edu 2007-03-08 23:41 --- Subject: Re: Overloaded operator delete[] doesn't get called Above, in operator new[], If WTF is false, returning NULL, I reproduce the same error (missing call to class operator delete []). If WTF is true

[Bug c++/29164] Overloaded operator delete[] doesn't get called

2007-03-10 Thread fang at csl dot cornell dot edu
--- Comment #9 from fang at csl dot cornell dot edu 2007-03-11 03:47 --- In fact, I'm having trouble reproducing the problem when operator delete [] returns anything BUT NULL. It's as if, the actual call to operator delete [] is guarded by a NULL check. Now, if I'm RTHS (reading

[Bug c++/20599] variadic template support

2007-03-11 Thread fang at csl dot cornell dot edu
--- Comment #14 from fang at csl dot cornell dot edu 2007-03-12 06:22 --- For reference, is this the latest draft of the variadic template proposal? http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2080.pdf -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20599

[Bug c++/31156] creates reference to copy constructor on use of temporary object

2007-03-12 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-03-12 21:56 --- See PR 25950 and PR 12226 (dup). The resolution is that you need an accessible copy-constructor, regardless of whether or not the compiler elides it during temporary creation. -- fang at csl dot cornell dot

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-14 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-03-14 18:14 --- Interesting. Do the attributes apply to derived classes automatically? struct B __attribute__((reorder)) { char a; int b; }; struct D : public B { char c, d, e; }; Is D also allowed to reorder members

[Bug preprocessor/31182] preprocessor doubles up digits in token pasting

2007-03-14 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-03-15 04:35 --- Subject: Re: preprocessor doubles up digits in token pasting With your example, g++ -E - gives me: stdin:2:1: error: pasting foo2 and 2.2 does not give a valid preprocessing token foo22.2 with versions 4.0.1

[Bug libstdc++/31000] std::valarray should be annotated with OpenMP directives

2007-03-19 Thread fang at csl dot cornell dot edu
--- Comment #6 from fang at csl dot cornell dot edu 2007-03-19 18:51 --- Subject: Re: std::valarray should be annotated with OpenMP directives bangerth at dealii dot org [EMAIL PROTECTED] writes: | (In reply to comment #3) | I suspect that parallelizing for SSE/Altivec might

[Bug c++/31330] small template-use example crashes g++ w/internal error

2007-03-23 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-03-24 00:26 --- PR 27102 dup? using template parameter as a class name of member function. -- fang at csl dot cornell dot edu changed: What|Removed |Added

[Bug libstdc++/31370] resizing bugs in std::vectorbool

2007-03-27 Thread fang at csl dot cornell dot edu
--- Comment #4 from fang at csl dot cornell dot edu 2007-03-27 08:52 --- Poor vectorbool, being disrespected as a second-class container once again... :P -- fang at csl dot cornell dot edu changed: What|Removed |Added

[Bug c++/31397] Useful compiler warning missing (virtual functions in derived classes used without 'virtual')

2007-03-30 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-03-31 00:43 --- Do you mean -Woverloaded-virtual? (see man page) The diagostic reports when a derived class's method 'hides' the base class's. -- fang at csl dot cornell dot edu changed: What|Removed

[Bug c++/31419] template user defined conversion operator instantiated for conversion to self

2007-04-01 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-04-01 15:38 --- Aside, it looks to me as if operator () returns a reference (const) to a temporary, which is undefined, no? -- fang at csl dot cornell dot edu changed: What|Removed |Added

[Bug c++/31419] template user defined conversion operator instantiated for conversion to self

2007-04-01 Thread fang at csl dot cornell dot edu
--- Comment #3 from fang at csl dot cornell dot edu 2007-04-01 16:57 --- Subject: Re: template user defined conversion operator instantiated for conversion to self There is no operator() in the code. And there is no undefined behavior is the reference is not used. But that's

[Bug libstdc++/31464] Extension request: publicly visible forward-declaration headers for string and all STL containers

2007-04-03 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-04-03 19:45 --- Funny you mention this, I've done exactly this in my own utility headers: create forward-declaration-only headers of STL containers and algorithms. STL/allocator_fwd.h: namespace std { template class T class

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

2007-04-04 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2007-04-05 06:11 --- PR 2708 dup? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30734

[Bug middle-end/31475] gcc 4.2.0 from svn r123448 segfaults while 4.2.0rc1 was working properly

2007-04-04 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2007-04-05 06:46 --- same as recent c++ issue PR 31453 tripped in testsuite? -- fang at csl dot cornell dot edu changed: What|Removed |Added

[Bug c++/2708] ambiguity check fails for namespace vs class scope

2007-04-12 Thread fang at csl dot cornell dot edu
--- Comment #8 from fang at csl dot cornell dot edu 2007-04-13 02:40 --- Note: PR 30734 is a dupe of this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2708

[Bug c++/31573] -Wall-all to enable all warnings

2007-04-14 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-04-14 20:27 --- That begs the question: what's *not* covered by -W -Wall -Wextra [-ansi -pedantic-errors -Werror]? There are also some warning flags that are parameterized (-Wstrict-aliasing=#, -Wformat=#), should those be maxed

[Bug c++/31573] -Wall-all to enable all warnings

2007-04-14 Thread fang at csl dot cornell dot edu
--- Comment #3 from fang at csl dot cornell dot edu 2007-04-14 22:24 --- Subject: Re: -Wall-all to enable all warnings --- Comment #2 from pinskia at gcc dot gnu dot org 2007-04-14 21:18 --- Actually more than that, there are new warnings options each release so really

[Bug c/31804] gcc segfaults on very long pointer chains

2007-05-03 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2007-05-04 03:40 --- adding to personal favorite list :) -- fang at csl dot cornell dot edu changed: What|Removed |Added

  1   2   >