aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/experimental/deque
diff options
context:
space:
mode:
authorGaius Mulley <gaiusmod2@gmail.com>2025-06-06 10:46:48 +0100
committerGaius Mulley <gaiusmod2@gmail.com>2025-06-06 10:46:48 +0100
commit16ab791531ec16fd4596a25efbe6b42e6c16171f (patch)
tree52ffe4f5db37ad5bf83b07e0de19a55b43f0e4b0 /libstdc++-v3/include/experimental/deque
parent61b014f614be523174f6a9df6e1fbac11de11abd (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
PR modula2/120542: Return statement in the main procedure crashes the compilerHEADtrunkmaster
The patch checks whether a return statement is allowed. It also checks to see that a return expression is allowed. gcc/m2/ChangeLog: PR modula2/120542 * gm2-compiler/M2Quads.mod (BuildReturnLower): New procedure. (BuildReturn): Allow return without an expression from module initialization blocks. Generate an error if an expression is provided. Call BuildReturnLower if no error was seen. gcc/testsuite/ChangeLog: PR modula2/120542 * gm2/iso/fail/badreturn.mod: New test. * gm2/iso/fail/badreturn2.mod: New test. * gm2/iso/pass/modulereturn.mod: New test. * gm2/iso/pass/modulereturn2.mod: New test. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'libstdc++-v3/include/experimental/deque')
0 files changed, 0 insertions, 0 deletions