Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ryandesign opened this issue Dec 3, 2023 · 2 comments
Closed

Comments

@ryandesign
Copy link
Contributor

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>();

@TomHarte
Copy link
Owner

TomHarte commented Dec 3, 2023

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.

@ryandesign
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants