#4632 closed defect (fixed)

Error in rtems/thread.hpp with GCC 12

Reported by: Sebastian Huber Owned by: Chris Johns
Priority: normal Milestone: 6.1
Component: lib Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

There is a compile error with GCC 12:

In file included from /home/EB/sebastian_h/src/rtems/cpukit/librtemscxx/thread.cpp:35:
/home/EB/sebastian_h/src/rtems/cpukit/include/rtems/thread.hpp:449:14: error: redefinition of default argument for 'class<template-parameter-1-4>'
  449 |              class = thread::enable_if_attributes<A>>
      |              ^~~~~
/home/EB/sebastian_h/src/rtems/cpukit/include/rtems/thread.hpp:312:17: note: original definition appeared here
  312 |                 class = enable_if_attributes<A>>
      |                 ^~~~~

Change History (1)

comment:1 Changed on 03/19/22 at 09:24:02 by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In 7fe3c62/rtems:

thread.hpp: Fix redefinition of default argument

A default argument shall be defined only once.

Close #4632.

Note: See TracTickets for help on using tickets.