|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++.beta - [bug] DMC 8.49 enum lookup through class derived from template parameter
I believe this lookup should succeed as it does when C explicitly
derives from B.
C:\code\src\gen\test>type test.cpp
class B
{
protected:
enum
{
ZERO = 0
};
};
template<class T>
class C : T
{
public:
C() : val( ZERO ) {}
private:
int val;
};
void main()
{
C<B> d;
}
C:\code\src\gen\test>dmc test.cpp
test.cpp(15) : Error: undefined identifier 'ZERO'
test.cpp(26) : Error: expression expected
Fatal error: premature end of source file
--- errorlevel 1
C:\code\src\gen\test>
Oct 23 2006
On Mon, 23 Oct 2006 09:59:32 -0700, Sean Kelly wrote:I believe this lookup should succeed as it does when C explicitly derives from B. Oct 23 2006
Christof Meerwald wrote:On Mon, 23 Oct 2006 09:59:32 -0700, Sean Kelly wrote:I believe this lookup should succeed as it does when C explicitly derives from B. Oct 23 2006
|