Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

exec/async_scope.hpp: "invalid use of void expression" in on_empty() with nvcc 12.9 and gcc-12 host compiler

Offen
#2,304 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
54/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
compilers

Rechercherichtung

Start by reading exec/async_scope.hpp around lines 823–825, especially on_empty(), and compare the related inline_scheduler fix in #2288. Run the standalone repro.cu compile command with nvcc 12.9 and gcc-12 to confirm the failure. Done means establishing whether this compiler combination is supported and whether the issue can be resolved in async_scope.hpp.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Including <exec/async_scope.hpp> fails to compile under nvcc with gcc-12 as the host compiler. We observed this in HPX's CUDA CI, where a .cu test pulls in the header through hpx/execution.hpp.

Environment

  • nvcc: CUDA 12.9
  • host compiler: gcc-12
  • stdexec: main

Error
exec/async_scope.hpp:823-825
return when_empty(just());
error: invalid use of void expression

Observed in

Standalone repro (not yet verified outside HPX CI)
// repro.cu
#include <exec/async_scope.hpp>
int main() {}

nvcc -std=c++20 -ccbin g++-12 -I<stdexec>/include -c repro.cu

Notes

  • The same error on this line was reported as GCC bug 114393, so this may be a gcc-12 front-end problem that nvcc exposes.
  • A similar nvcc failure in inline_scheduler (#2284) was fixed with a CUDACC guard in #2288. This looks like a separate problem in async_scope.

Questions

  • Is nvcc with gcc-12 a supported combination for exec/async_scope.hpp?
  • Would a CUDACC guard or a workaround in on_empty() (for example an explicit return type) be acceptable, as in #2288?
Vorherrschende Sprache
C++
Sterne
2.5k
Forks
276
Ø Merge
1 T. 18 Std.
Gemergte PRs (30 T.)
39

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus NVIDIA/stdexec

Alle Issues in NVIDIA/stdexec

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.