Internal compiler error with nvcc + gcc
Hi everyone,
I'm getting a compilation error with nvcc when using gcc as a host compiler. Using clang as a host compiler works, as does a CPU-only compilation. Godbolt link: https://godbolt.org/z/zrhP5zY9W.
Is this a bug, or am I misusing something here?
Thanks alot for your mdspan efforts! Really liking it so far.
Quick note: looks to be due to the use of [[no_unique_address]] -- turning of its use in mdspan allows the compilation to complete: https://godbolt.org/z/6hEYeqhGn.
@michael-afanasiev Thanks for diagnosing this issue! "Internal Compiler Error" generally indicates a compiler bug. Are you able to use the library without the [[no_unique_address]] feature for now?
@mhoemmen Yes, not a huge deal -- the nvcc + gcc builds can just turn it off. Not sure how much interaction you have with the nvcc team, but if it helps i could close this in favor of a report over on the nvidia forums.
@michael-afanasiev Please do submit this as an nvcc bug -- it helps to have more independent confirmation. Thanks!
@mhoemmen -- sorry, let this slip for a bit. nvcc issue filled here.
@michael-afanasiev Thanks for filing the ticket! : - )
I think this is fixed.