On Wed, Nov 25, 2020 at 11:00:57AM +0100, Thomas Schwinge wrote: > I had reason to look into OpenMP C++ 'map' clause parsing, and a > testsuite enhancement to "Add 'g++.dg/gomp/map-{1,2}.C'" fell out of > that, see attached. OK to push? > > Note two XFAILs in 'g++.dg/gomp/map-1.C' compared to the C/C++ variant. > I suppose these are real, and should get resolved at some point?
I guess it depends. Do you get a diagnostics if you instantiate the templates? If yes, it is not a bug, the implementation is allowed but not required to diagnose bugs in uninstantiated templates (the C++ wording is if a template is invalid for all possible instantiations, then the program is ill-formed, no diagnostic required or so). It can be a QoI, but not everything can be diagnosed on uninstantiated templates. I'd suggest in any case to instantiate the templates unless you want to check solely for the QoI diagnostics on uninstantiated templates. Jakub