--- 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&
--- 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
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
--- 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.
-
--- 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
--- 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
--- 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
--- 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
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