[Bug c++/38579] [4.2/4.3/4.4 Regression] Template: Wrong inherited copy-ctor visibility

2009-01-15 Thread syntheticpp at gmx dot net
--- Comment #4 from syntheticpp at gmx dot net 2009-01-15 18:56 --- It has nothing to do with templates. This code still compiles: struct P { protected: P() {} P(const P&) {} }; struct B : protected P { B() {} }; struct C : public P { C(const B&

[Bug c++/38579] [4.2/4.3/4.4 Regression] Template: Wrong inherited copy-ctor visibility

2009-01-14 Thread syntheticpp at gmx dot net
--- Comment #3 from syntheticpp at gmx dot net 2009-01-14 18:29 --- 11.2 is talking about a different case. When you instantiate the integer template parameter manually you will see that it is really a bug: struct Policy { protected: Policy() {} Policy(const Policy

[Bug c++/38579] New: Template: Wrong inherited copy-ctor visibility

2008-12-19 Thread syntheticpp at gmx dot net
Summary: Template: Wrong inherited copy-ctor visibility Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: synthe

[Bug c++/29486] call of friend template is ambiguous

2006-10-16 Thread syntheticpp at gmx dot net
--- Comment #6 from syntheticpp at gmx dot net 2006-10-16 21:18 --- (In reply to comment #2) > Quickly looking at the source, I think this is the same as PR 29438 and PR > 29236. > Yes, this is possible, allways template templates are used as template parameter. -

[Bug c++/29486] call of friend template is ambiguous

2006-10-16 Thread syntheticpp at gmx dot net
--- Comment #5 from syntheticpp at gmx dot net 2006-10-16 21:09 --- bug2.cpp: 4.0.1 and 20061010 doesn't crash. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486

[Bug c++/29486] call of friend template is ambiguous

2006-10-16 Thread syntheticpp at gmx dot net
--- Comment #4 from syntheticpp at gmx dot net 2006-10-16 20:59 --- Created an attachment (id=12448) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12448&action=view) mingw-gcc crash Here another file which does not compile. On Windows gcc even crashs: bug2.cpp: In f

[Bug c++/29486] call of friend template is ambiguous

2006-10-16 Thread syntheticpp at gmx dot net
--- Comment #3 from syntheticpp at gmx dot net 2006-10-16 20:53 --- Comeau compiles it, but vc8 also fails. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486

[Bug c++/29486] call of friend template is ambiguous

2006-10-16 Thread syntheticpp at gmx dot net
--- Comment #1 from syntheticpp at gmx dot net 2006-10-16 17:40 --- Created an attachment (id=12447) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12447&action=view) demo: g++ bug.cpp -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486

[Bug c++/29486] New: call of friend template is ambiguous

2006-10-16 Thread syntheticpp at gmx dot net
Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: syntheticpp at gmx dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486