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/07/07 02:55:05 UTC
[jira] Closed: (STDCXX-469) std::locale::facet ctor and dtor
public, should be protected
[ https://issues.apache.org/jira/browse/STDCXX-469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor closed STDCXX-469.
-------------------------------
Resolution: Fixed
Fix Version/s: 4.2
Fixed with the referenced change.
> std::locale::facet ctor and dtor public, should be protected
> ------------------------------------------------------------
>
> Key: STDCXX-469
> URL: https://issues.apache.org/jira/browse/STDCXX-469
> Project: C++ Standard Library
> Issue Type: Bug
> Components: 22. Localization
> Affects Versions: 4.1.3, 4.1.2
> Environment: all
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Fix For: 4.2
>
>
> The program below compiles even though it shouldn't because according to [locale.facet], p1, std::locale::facet ctor and dtor are both supposed to be protected:
> $ cat t.cpp && make t
> #include <locale>
> int main ()
> {
> std::locale::facet f;
> }
> gcc -c -I/build/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-4.1.0-11s/include -I/build/sebor/stdcxx/tests/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long t.cpp
> gcc t.o -o t -L/build/sebor/stdcxx-gcc-4.1.0-11s/rwtest -lrwtest11s -L/build/sebor/stdcxx-gcc-4.1.0-11s/lib -lstd11s -lsupc++ -lm
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.