aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-11-04 10:36:45 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-11-04 10:36:45 +0000
commit24366207b77481bceebb425569932297c441e04e (patch)
tree10d97d126082a07b63083e40d90b145e5b1d5e30 /gcc/tree-ssa-phiopt.c
parent10a50d261e5504887b0702bea3876103ea461f2b (diff)
downloadgcc-24366207b77481bceebb425569932297c441e04e.zip
gcc-24366207b77481bceebb425569932297c441e04e.tar.gz
gcc-24366207b77481bceebb425569932297c441e04e.tar.bz2
libstdc++: Fix constant expressions in std::uniform_int_distribution
Clang and EDG say the class member access expressions __urng.min() and __urng.max() are not constant expressions, because the object expression __urng is not usable in a constant expresion. Use a qualified-id to call those static member functions instead. Co-authored-by: Stephan Bergmann <sbergman@redhat.com> libstdc++-v3/ChangeLog: * include/bits/uniform_int_dist.h (uniform_int_distribution::_S_nd): Use qualified-id to refer to static member functions.
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
0 files changed, 0 insertions, 0 deletions