open-watcom / open-watcom-v2

Open Watcom V2.0 - Source code repository, Wiki, Latest Binary build, Archived builds including all installers for download.
Other
964 stars 157 forks source link

[Compilation fails only on open-watcom-v2] ofstream call to rdbuf( cout ) #1303

Open vareille opened 3 months ago

vareille commented 3 months ago

It works on every compiler I've tried : VisualStudio MinGW GCC Clang IntelCC BCC SunCC

ofstream lFileOut ;
lFileOut.basic_ios<char>::rdbuf(std::cout.rdbuf());

on owcc it says:

Error! E121: col(36) syntax error
Error: Compiler returned a bad status compiling

col(36) is just after <char I've tried on the current-release 2024-06-14