You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/01/19 22:37:30 UTC
[jira] Created: (STDCXX-326) std::ios_base::io_state not an integer
type
std::ios_base::io_state not an integer type
-------------------------------------------
Key: STDCXX-326
URL: https://issues.apache.org/jira/browse/STDCXX-326
Project: C++ Standard Library
Issue Type: Bug
Components: 27. Input/Output
Affects Versions: 4.1.2, 4.1.3
Environment: all
Reporter: Martin Sebor
depr.ios.members, p2 requires that std::ios_base::io_state be an integer type. The program below fails to compile, indicating that in stdcxx it is not:
$ cat t.cpp && make t
#include <ios>
int main ()
{
const int i = 1;
std::ios_base::io_state s = i;
}
eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/eccp-3.8-11s/include -I/build/sebor/dev/stdlib/include/ansi -I/build/sebor/PlumHall/lvs06a/conform -I/build/sebor/PlumHall/lvs06a/dst.3 -A -x --template_directory=/build/sebor/eccp-3.8-11s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 --diag_suppress 177,381,191,68,550,611,997,549 t.cpp
"t.cpp", line 6: error #144: a value of type "int" cannot be used to
initialize an entity of type "std::ios_base::io_state"
std::ios_base::io_state s = i;
^
1 error detected in the compilation of "t.cpp".
make: *** [t.o] Error 2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (STDCXX-326) std::ios_base::io_state not an
integer type
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor reassigned STDCXX-326:
-----------------------------------
Assignee: Martin Sebor
> std::ios_base::io_state not an integer type
> -------------------------------------------
>
> Key: STDCXX-326
> URL: https://issues.apache.org/jira/browse/STDCXX-326
> Project: C++ Standard Library
> Issue Type: Bug
> Components: 27. Input/Output
> Affects Versions: 4.1.3, 4.1.2
> Environment: all
> Reporter: Martin Sebor
> Assigned To: Martin Sebor
>
> depr.ios.members, p2 requires that std::ios_base::io_state be an integer type. The program below fails to compile, indicating that in stdcxx it is not:
> $ cat t.cpp && make t
> #include <ios>
> int main ()
> {
> const int i = 1;
> std::ios_base::io_state s = i;
> }
> eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/eccp-3.8-11s/include -I/build/sebor/dev/stdlib/include/ansi -I/build/sebor/PlumHall/lvs06a/conform -I/build/sebor/PlumHall/lvs06a/dst.3 -A -x --template_directory=/build/sebor/eccp-3.8-11s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 --diag_suppress 177,381,191,68,550,611,997,549 t.cpp
> "t.cpp", line 6: error #144: a value of type "int" cannot be used to
> initialize an entity of type "std::ios_base::io_state"
> std::ios_base::io_state s = i;
> ^
> 1 error detected in the compilation of "t.cpp".
> make: *** [t.o] Error 2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (STDCXX-326) std::ios_base::io_state not an
integer type
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor resolved STDCXX-326.
---------------------------------
Resolution: Fixed
Fix Version/s: 4.2
Fixed with the referenced patch. Need to add a test.
> std::ios_base::io_state not an integer type
> -------------------------------------------
>
> Key: STDCXX-326
> URL: https://issues.apache.org/jira/browse/STDCXX-326
> Project: C++ Standard Library
> Issue Type: Bug
> Components: 27. Input/Output
> Affects Versions: 4.1.3, 4.1.2
> Environment: all
> Reporter: Martin Sebor
> Assigned To: Martin Sebor
> Fix For: 4.2
>
>
> depr.ios.members, p2 requires that std::ios_base::io_state be an integer type. The program below fails to compile, indicating that in stdcxx it is not:
> $ cat t.cpp && make t
> #include <ios>
> int main ()
> {
> const int i = 1;
> std::ios_base::io_state s = i;
> }
> eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/eccp-3.8-11s/include -I/build/sebor/dev/stdlib/include/ansi -I/build/sebor/PlumHall/lvs06a/conform -I/build/sebor/PlumHall/lvs06a/dst.3 -A -x --template_directory=/build/sebor/eccp-3.8-11s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 --diag_suppress 177,381,191,68,550,611,997,549 t.cpp
> "t.cpp", line 6: error #144: a value of type "int" cannot be used to
> initialize an entity of type "std::ios_base::io_state"
> std::ios_base::io_state s = i;
> ^
> 1 error detected in the compilation of "t.cpp".
> make: *** [t.o] Error 2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (STDCXX-326) std::ios_base::io_state not an
integer type
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466156 ]
Martin Sebor commented on STDCXX-326:
-------------------------------------
The other two deprecated types, open_mode and seek_dir, have the same problem:
$ cat t.cpp && make t
#include <ios>
void foo (std::ios::io_state, std::ios::open_mode, std::ios::seek_dir) { }
int main ()
{
foo (1, 2, 3);
}
eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/eccp-3.8-11s/include -I/build/sebor/dev/stdlib/include/ansi -I/build/sebor/PlumHall/lvs06a/conform -I/build/sebor/PlumHall/lvs06a/dst.3 -A -x --template_directory=/build/sebor/eccp-3.8-11s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 --diag_suppress 177,381,191,68,550,611,997,549 t.cpp
"t.cpp", line 7: error #167: argument of type "int" is incompatible with
parameter of type "std::ios_base::io_state"
foo (1, 2, 3);
^
"t.cpp", line 7: error #167: argument of type "int" is incompatible with
parameter of type "std::ios_base::open_mode"
foo (1, 2, 3);
^
"t.cpp", line 7: error #167: argument of type "int" is incompatible with
parameter of type "std::ios_base::seek_dir"
foo (1, 2, 3);
^
3 errors detected in the compilation of "t.cpp".
make: *** [t.o] Error 2
> std::ios_base::io_state not an integer type
> -------------------------------------------
>
> Key: STDCXX-326
> URL: https://issues.apache.org/jira/browse/STDCXX-326
> Project: C++ Standard Library
> Issue Type: Bug
> Components: 27. Input/Output
> Affects Versions: 4.1.3, 4.1.2
> Environment: all
> Reporter: Martin Sebor
>
> depr.ios.members, p2 requires that std::ios_base::io_state be an integer type. The program below fails to compile, indicating that in stdcxx it is not:
> $ cat t.cpp && make t
> #include <ios>
> int main ()
> {
> const int i = 1;
> std::ios_base::io_state s = i;
> }
> eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/eccp-3.8-11s/include -I/build/sebor/dev/stdlib/include/ansi -I/build/sebor/PlumHall/lvs06a/conform -I/build/sebor/PlumHall/lvs06a/dst.3 -A -x --template_directory=/build/sebor/eccp-3.8-11s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 --diag_suppress 177,381,191,68,550,611,997,549 t.cpp
> "t.cpp", line 6: error #144: a value of type "int" cannot be used to
> initialize an entity of type "std::ios_base::io_state"
> std::ios_base::io_state s = i;
> ^
> 1 error detected in the compilation of "t.cpp".
> make: *** [t.o] Error 2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira