Debug build broken on v18.8.0

Version

v18.8.0

Platform

Linux pop-os 5.18.10-76051810-generic

Subsystem

build

What steps will reproduce the bug?

$ ./configure --debug
$ make

How often does it reproduce? Is there a required condition?

Every time when compiling with clang. The debug build completes when using gcc.

What is the expected behavior?

To build properly.

What do you see instead?

The following output during the build:

../deps/v8/src/codegen/register.h:29:48: error: member reference base type 'RegListBase' is not a structure or union
  int num_different_regs = RegListBase{regs...}.Count();
                           ~~~~~~~~~~~~~~~~~~~~^~~~~~

Additional information

I'm compiling with clang 11.1.0 and gcc 11.2.0.