incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-469) std::locale::facet ctor and dtor public, should be protected
Date Fri, 06 Jul 2007 21:57:04 GMT
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.2, 4.1.3
         Environment: all
            Reporter: Martin Sebor


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.


Mime
View raw message