Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vareille opened this issue Jun 18, 2024 · 0 comments
Open

Comments

@vareille
Copy link

vareille commented Jun 18, 2024

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

@vareille vareille changed the title [ONLY FAILS ON OPENWATCOM2] ofstream call to rdbuf( std::cout.rdbuf() ) [Compilation fails only on OpenWatcom] ofstream call to rdbuf( std::cout.rdbuf() ) Jun 18, 2024
@vareille vareille changed the title [Compilation fails only on OpenWatcom] ofstream call to rdbuf( std::cout.rdbuf() ) [Compilation fails only on open-watcom-v2] ofstream call to rdbuf( std::cout.rdbuf() ) Jun 18, 2024
@vareille vareille changed the title [Compilation fails only on open-watcom-v2] ofstream call to rdbuf( std::cout.rdbuf() ) [Compilation fails only on open-watcom-v2] ofstream call to rdbuf( cout ) Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant