TomHarte/CLK

Missing 'template' keyword prior to dependent template name 'read'

ryandesign opened this issue · 2 comments

I can't build the latest code from master using Xcode 14.2 on macOS Monterey 12.7.1 because of these errors:

Machines/PCCompatible/PCCompatible.cpp:882:41 Missing 'template' keyword prior to dependent template name 'read'
Machines/PCCompatible/PCCompatible.cpp:883:41 Missing 'template' keyword prior to dependent template name 'read'
Machines/PCCompatible/PCCompatible.cpp:884:41 Missing 'template' keyword prior to dependent template name 'read'
Machines/PCCompatible/PCCompatible.cpp:885:41 Missing 'template' keyword prior to dependent template name 'read'
Machines/PCCompatible/PCCompatible.cpp:886:41 Missing 'template' keyword prior to dependent template name 'read'
Machines/PCCompatible/PCCompatible.cpp:887:41 Missing 'template' keyword prior to dependent template name 'read'
Machines/PCCompatible/PCCompatible.cpp:888:41 Missing 'template' keyword prior to dependent template name 'read'
Machines/PCCompatible/PCCompatible.cpp:889:41 Missing 'template' keyword prior to dependent template name 'read'

on these lines:

case 0x0000: return dma_.controller.read<0>();
case 0x0001: return dma_.controller.read<1>();
case 0x0002: return dma_.controller.read<2>();
case 0x0003: return dma_.controller.read<3>();
case 0x0004: return dma_.controller.read<4>();
case 0x0005: return dma_.controller.read<5>();
case 0x0006: return dma_.controller.read<6>();
case 0x0007: return dma_.controller.read<7>();

I'm curious whether these are secondary to the inability to parse DMA caused by my previous lack of a #include <array>; DMA is named as a concrete class to the offender, IO, so shouldn't be a dependent template.

I guess we'll see.

Yes, thank you, #1236 fixed this as well. master builds again with Xcode 14.2 now.