Unions, common-initial subsequence and UB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

this is more a general question instead of a g++ specific one:

the standard explicitly makes this exception: accessing an inactive union member is not UB if the members are structs with initial common sequence.

Is this also true in a constexpr context? I ask this because the chapter for constexpr expression does not mention this exception accessing an inactive memeber.

Thanks for hints,
 Wilhelm



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux