Skip to content

Commit d75e284

Browse files
authored
[flang][runtime] Fix build bot flang-runtime-cuda-gcc errors (#143650)
Adjust default parent class accessibility to attemp to work around what appear to be old GCC's interpretation.
1 parent 28a4ed9 commit d75e284

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flang-rt/include/flang-rt/runtime/work-queue.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class AssignTicket : public ImmediateTicketRunner<AssignTicket> {
319319
template <bool IS_COMPONENTWISE>
320320
class DerivedAssignTicket
321321
: public ImmediateTicketRunner<DerivedAssignTicket<IS_COMPONENTWISE>>,
322-
private std::conditional_t<IS_COMPONENTWISE, ComponentsOverElements,
322+
protected std::conditional_t<IS_COMPONENTWISE, ComponentsOverElements,
323323
ElementsOverComponents> {
324324
public:
325325
using Base = std::conditional_t<IS_COMPONENTWISE, ComponentsOverElements,
@@ -348,7 +348,7 @@ namespace io::descr {
348348
template <io::Direction DIR>
349349
class DescriptorIoTicket
350350
: public ImmediateTicketRunner<DescriptorIoTicket<DIR>>,
351-
private Elementwise {
351+
protected Elementwise {
352352
public:
353353
RT_API_ATTRS DescriptorIoTicket(io::IoStatementState &io,
354354
const Descriptor &descriptor, const io::NonTbpDefinedIoTable *table,
@@ -372,7 +372,7 @@ class DescriptorIoTicket
372372

373373
template <io::Direction DIR>
374374
class DerivedIoTicket : public ImmediateTicketRunner<DerivedIoTicket<DIR>>,
375-
private ElementsOverComponents {
375+
protected ElementsOverComponents {
376376
public:
377377
RT_API_ATTRS DerivedIoTicket(io::IoStatementState &io,
378378
const Descriptor &descriptor, const typeInfo::DerivedType &derived,

0 commit comments

Comments
 (0)