You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Scott (Yu) Zhong (JIRA)" <ji...@apache.org> on 2007/03/19 22:09:32 UTC

[jira] Created: (STDCXX-364) [Linux] gcc 21.cwchar.cpp tm error

[Linux] gcc 21.cwchar.cpp tm error
----------------------------------

                 Key: STDCXX-364
                 URL: https://issues.apache.org/jira/browse/STDCXX-364
             Project: C++ Standard Library
          Issue Type: Bug
          Components: 21. Strings
    Affects Versions: 4.2
         Environment: Linux, gcc 3.4.6 - 4.1.2 
            Reporter: Scott (Yu) Zhong


getting this error:

/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
/usr/include/../include/time.h:135: error: candidates are: struct tm
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
/usr/include/../include/time.h:135: error: candidates are: struct tm
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: 'tm' does not name a type
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: 'test_tm' in namespace 'std::Nested' does not name a type

-----------------------------------------------------------------------------------------

Martin Sebor [sebor@roguewave.com]

I was able to reproduce the same error with gcc 3.4.6.

The purpose of the test is to verify the conformance of the <cwchar> header WRT namespace cleanliness (i.e., that symbols like struct tm are defined in namespace std and not also in the global scope). The test is designed to fail at runtime (via assertions) rather than at compile time but it looks like the implementation of the test (or maybe even its
design) is broken. In any case, the fact that the test doesn't compile suggests there is a problem with the header.
The compilation errors for the simple program below confirm this. Can you open an issue for this problem and reference this thread in the archive in the issue?

$ cat t.cpp && nice make t
#include <cwchar>

int main ()
{
     std::tm tmb = { 0 };
}

gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.4.6-11S/include
-I/amd/devco/sebor/stdcxx/../rwtest
-I/amd/devco/sebor/stdcxx/../rwtest/include
-I/amd/devco/sebor/stdcxx/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
-Wcast-align   t.cpp
t.cpp: In function `int main()':
t.cpp:5: error: `tm' is not a member of `std'
t.cpp:5: error: expected `;' before "tmb"
make: *** [t.o] Error 1

Thanks
Martin

$ cat t.cpp && nice make t
#include <cwchar>

int main ()
{
     std::tm tmb = { 0 };
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-364) [Linux] gcc 21.cwchar.cpp tm error

Posted by "Scott (Yu) Zhong (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott (Yu) Zhong updated STDCXX-364:
------------------------------------

    Description: 
getting this error:

/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
/usr/include/../include/time.h:135: error: candidates are: struct tm
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
/usr/include/../include/time.h:135: error: candidates are: struct tm
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: 'tm' does not name a type
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: 'test_tm' in namespace 'std::Nested' does not name a type

-----------------------------------------------------------------------------------------

Martin Sebor [m...@roguewave.com]

I was able to reproduce the same error with gcc 3.4.6.

The purpose of the test is to verify the conformance of the <cwchar> header WRT namespace cleanliness (i.e., that symbols like struct tm are defined in namespace std and not also in the global scope). The test is designed to fail at runtime (via assertions) rather than at compile time but it looks like the implementation of the test (or maybe even its
design) is broken. In any case, the fact that the test doesn't compile suggests there is a problem with the header.
The compilation errors for the simple program below confirm this. Can you open an issue for this problem and reference this thread in the archive in the issue?

$ cat t.cpp && nice make t
#include <cwchar>

int main ()
{
     std::tm tmb = { 0 };
}

gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.4.6-11S/include
-I/amd/devco/sebor/stdcxx/../rwtest
-I/amd/devco/sebor/stdcxx/../rwtest/include
-I/amd/devco/sebor/stdcxx/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
-Wcast-align   t.cpp
t.cpp: In function `int main()':
t.cpp:5: error: `tm' is not a member of `std'
t.cpp:5: error: expected `;' before "tmb"
make: *** [t.o] Error 1

Thanks
Martin

$ cat t.cpp && nice make t
#include <cwchar>

int main ()
{
     std::tm tmb = { 0 };
}

  was:
getting this error:

/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
/usr/include/../include/time.h:135: error: candidates are: struct tm
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
/usr/include/../include/time.h:135: error: candidates are: struct tm
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: 'tm' does not name a type
/home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: 'test_tm' in namespace 'std::Nested' does not name a type

-----------------------------------------------------------------------------------------

Martin Sebor [sebor@roguewave.com]

I was able to reproduce the same error with gcc 3.4.6.

The purpose of the test is to verify the conformance of the <cwchar> header WRT namespace cleanliness (i.e., that symbols like struct tm are defined in namespace std and not also in the global scope). The test is designed to fail at runtime (via assertions) rather than at compile time but it looks like the implementation of the test (or maybe even its
design) is broken. In any case, the fact that the test doesn't compile suggests there is a problem with the header.
The compilation errors for the simple program below confirm this. Can you open an issue for this problem and reference this thread in the archive in the issue?

$ cat t.cpp && nice make t
#include <cwchar>

int main ()
{
     std::tm tmb = { 0 };
}

gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.4.6-11S/include
-I/amd/devco/sebor/stdcxx/../rwtest
-I/amd/devco/sebor/stdcxx/../rwtest/include
-I/amd/devco/sebor/stdcxx/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
-Wcast-align   t.cpp
t.cpp: In function `int main()':
t.cpp:5: error: `tm' is not a member of `std'
t.cpp:5: error: expected `;' before "tmb"
make: *** [t.o] Error 1

Thanks
Martin

$ cat t.cpp && nice make t
#include <cwchar>

int main ()
{
     std::tm tmb = { 0 };
}


remove Martin's email.

> [Linux] gcc 21.cwchar.cpp tm error
> ----------------------------------
>
>                 Key: STDCXX-364
>                 URL: https://issues.apache.org/jira/browse/STDCXX-364
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 21. Strings
>    Affects Versions: 4.2
>         Environment: Linux, gcc 3.4.6 - 4.1.2 
>            Reporter: Scott (Yu) Zhong
>
> getting this error:
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: 'tm' does not name a type
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: 'test_tm' in namespace 'std::Nested' does not name a type
> -----------------------------------------------------------------------------------------
> Martin Sebor [m...@roguewave.com]
> I was able to reproduce the same error with gcc 3.4.6.
> The purpose of the test is to verify the conformance of the <cwchar> header WRT namespace cleanliness (i.e., that symbols like struct tm are defined in namespace std and not also in the global scope). The test is designed to fail at runtime (via assertions) rather than at compile time but it looks like the implementation of the test (or maybe even its
> design) is broken. In any case, the fact that the test doesn't compile suggests there is a problem with the header.
> The compilation errors for the simple program below confirm this. Can you open an issue for this problem and reference this thread in the archive in the issue?
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }
> gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.4.6-11S/include
> -I/amd/devco/sebor/stdcxx/../rwtest
> -I/amd/devco/sebor/stdcxx/../rwtest/include
> -I/amd/devco/sebor/stdcxx/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
> -Wcast-align   t.cpp
> t.cpp: In function `int main()':
> t.cpp:5: error: `tm' is not a member of `std'
> t.cpp:5: error: expected `;' before "tmb"
> make: *** [t.o] Error 1
> Thanks
> Martin
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (STDCXX-364) [gcc/Linux] std::tm not declared in

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov reopened STDCXX-364:
----------------------------------


uname -a: CYGWIN_NT-5.1 EPKW121 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
gcc --version: gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

I've got the following error after that patch:

----------------------------------
make[2]: Entering directory `/cygdrive/d/_projects/stdcxx_working/cygwin15s/lib'

gcc -c -I/cygdrive/d/_projects/stdcxx_working/include/ansi -D_RWSTDDEBUG   -mthreads -I/cygdrive/d/_projects/stdcxx_working/include -I/cygdrive/d/_projects/stdcxx_working/cygwin15s/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align    /cygdrive/d/_projects/stdcxx_working/src/bitset.cpp
In file included from /cygdrive/d/_projects/stdcxx_working/include/rw/_mbstate.h:191,
                 from /cygdrive/d/_projects/stdcxx_working/include/rw/_traits.h:40,
                 from /cygdrive/d/_projects/stdcxx_working/include/rw/_strref.h:47,
                 from /cygdrive/d/_projects/stdcxx_working/include/string:43,
                 from /cygdrive/d/_projects/stdcxx_working/include/bitset:33,
                 from /cygdrive/d/_projects/stdcxx_working/src/bitset.cpp:30:
/cygdrive/d/_projects/stdcxx_working/include/ansi/cwchar:115: error: `::tm' has not been declared
make[2]: *** [bitset.o] Error 1
make[2]: Leaving directory `/cygdrive/d/_projects/stdcxx_working/cygwin15s/lib'
make[1]: *** [lib] Error 2
make[1]: Leaving directory `/cygdrive/d/_projects/stdcxx_working/cygwin15s'
make: *** [libstd] Error 2
----------------------------------


> [gcc/Linux] std::tm not declared in <cwchar>
> --------------------------------------------
>
>                 Key: STDCXX-364
>                 URL: https://issues.apache.org/jira/browse/STDCXX-364
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 21. Strings
>    Affects Versions: 4.1.3
>         Environment: Linux, gcc 3.4.6 - 4.1.2 
>            Reporter: Scott (Yu) Zhong
>         Assigned To: Martin Sebor
>             Fix For: 4.2
>
>
> getting this error:
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: 'tm' does not name a type
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: 'test_tm' in namespace 'std::Nested' does not name a type
> -----------------------------------------------------------------------------------------
> Martin Sebor [m...@roguewave.com]
> I was able to reproduce the same error with gcc 3.4.6.
> The purpose of the test is to verify the conformance of the <cwchar> header WRT namespace cleanliness (i.e., that symbols like struct tm are defined in namespace std and not also in the global scope). The test is designed to fail at runtime (via assertions) rather than at compile time but it looks like the implementation of the test (or maybe even its
> design) is broken. In any case, the fact that the test doesn't compile suggests there is a problem with the header.
> The compilation errors for the simple program below confirm this. Can you open an issue for this problem and reference this thread in the archive in the issue?
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }
> gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.4.6-11S/include
> -I/amd/devco/sebor/stdcxx/../rwtest
> -I/amd/devco/sebor/stdcxx/../rwtest/include
> -I/amd/devco/sebor/stdcxx/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
> -Wcast-align   t.cpp
> t.cpp: In function `int main()':
> t.cpp:5: error: `tm' is not a member of `std'
> t.cpp:5: error: expected `;' before "tmb"
> make: *** [t.o] Error 1
> Thanks
> Martin
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-364) [gcc/Linux] std::tm not declared in

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-364:
--------------------------------

    Affects Version/s:     (was: 4.2)
                       4.1.3
              Summary: [gcc/Linux] std::tm not declared in <cwchar>  (was: [Linux] gcc 21.cwchar.cpp tm error)

Broken since at least stdcxx 4.1.3 (see below). For some reason we forget to introduce struct tm into namespace std in <cwchar>, even though we do the right thing in <ctime>.

$ make t
generating dependencies for t.cpp
gcc -c -I/amd/devco/sebor/stdcxx-4.1.3/include/ansi -D_RWSTDDEBUG    -D_RWSTD_USE_CONFIG -I/build/sebor/stdcxx-4.1.3-gcc-3.4.6-11S//include -I/amd/devco/sebor/stdcxx-4.1.3/include -I/amd/devco/sebor/stdcxx-4.1.3/examples/include  -pedantic -nostdinc++ -g  -Wall -W -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align  t.cpp
t.cpp: In function `int main()':
t.cpp:5: error: `tm' is not a member of `std'
t.cpp:5: error: expected `;' before "tmb"
t.cpp:6: error: `tmb' was not declared in this scope
t.cpp:6: warning: unused variable 'tmb'
make: *** [t.o] Error 1


> [gcc/Linux] std::tm not declared in <cwchar>
> --------------------------------------------
>
>                 Key: STDCXX-364
>                 URL: https://issues.apache.org/jira/browse/STDCXX-364
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 21. Strings
>    Affects Versions: 4.1.3
>         Environment: Linux, gcc 3.4.6 - 4.1.2 
>            Reporter: Scott (Yu) Zhong
>
> getting this error:
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: 'tm' does not name a type
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: 'test_tm' in namespace 'std::Nested' does not name a type
> -----------------------------------------------------------------------------------------
> Martin Sebor [m...@roguewave.com]
> I was able to reproduce the same error with gcc 3.4.6.
> The purpose of the test is to verify the conformance of the <cwchar> header WRT namespace cleanliness (i.e., that symbols like struct tm are defined in namespace std and not also in the global scope). The test is designed to fail at runtime (via assertions) rather than at compile time but it looks like the implementation of the test (or maybe even its
> design) is broken. In any case, the fact that the test doesn't compile suggests there is a problem with the header.
> The compilation errors for the simple program below confirm this. Can you open an issue for this problem and reference this thread in the archive in the issue?
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }
> gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.4.6-11S/include
> -I/amd/devco/sebor/stdcxx/../rwtest
> -I/amd/devco/sebor/stdcxx/../rwtest/include
> -I/amd/devco/sebor/stdcxx/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
> -Wcast-align   t.cpp
> t.cpp: In function `int main()':
> t.cpp:5: error: `tm' is not a member of `std'
> t.cpp:5: error: expected `;' before "tmb"
> make: *** [t.o] Error 1
> Thanks
> Martin
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STDCXX-364) [gcc/Linux] std::tm not declared in

Posted by "Mark Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483014 ] 

Mark Brown commented on STDCXX-364:
-----------------------------------

I get the same error with gcc 3.4.4 on Cygwin.

> [gcc/Linux] std::tm not declared in <cwchar>
> --------------------------------------------
>
>                 Key: STDCXX-364
>                 URL: https://issues.apache.org/jira/browse/STDCXX-364
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 21. Strings
>    Affects Versions: 4.1.3
>         Environment: Linux, gcc 3.4.6 - 4.1.2 
>            Reporter: Scott (Yu) Zhong
>
> getting this error:
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: 'tm' does not name a type
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: 'test_tm' in namespace 'std::Nested' does not name a type
> -----------------------------------------------------------------------------------------
> Martin Sebor [m...@roguewave.com]
> I was able to reproduce the same error with gcc 3.4.6.
> The purpose of the test is to verify the conformance of the <cwchar> header WRT namespace cleanliness (i.e., that symbols like struct tm are defined in namespace std and not also in the global scope). The test is designed to fail at runtime (via assertions) rather than at compile time but it looks like the implementation of the test (or maybe even its
> design) is broken. In any case, the fact that the test doesn't compile suggests there is a problem with the header.
> The compilation errors for the simple program below confirm this. Can you open an issue for this problem and reference this thread in the archive in the issue?
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }
> gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.4.6-11S/include
> -I/amd/devco/sebor/stdcxx/../rwtest
> -I/amd/devco/sebor/stdcxx/../rwtest/include
> -I/amd/devco/sebor/stdcxx/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
> -Wcast-align   t.cpp
> t.cpp: In function `int main()':
> t.cpp:5: error: `tm' is not a member of `std'
> t.cpp:5: error: expected `;' before "tmb"
> make: *** [t.o] Error 1
> Thanks
> Martin
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (STDCXX-364) [gcc/Linux] std::tm not declared in

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor reassigned STDCXX-364:
-----------------------------------

    Assignee: Martin Sebor

> [gcc/Linux] std::tm not declared in <cwchar>
> --------------------------------------------
>
>                 Key: STDCXX-364
>                 URL: https://issues.apache.org/jira/browse/STDCXX-364
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 21. Strings
>    Affects Versions: 4.1.3
>         Environment: Linux, gcc 3.4.6 - 4.1.2 
>            Reporter: Scott (Yu) Zhong
>         Assigned To: Martin Sebor
>
> getting this error:
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: 'tm' does not name a type
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: 'test_tm' in namespace 'std::Nested' does not name a type
> -----------------------------------------------------------------------------------------
> Martin Sebor [m...@roguewave.com]
> I was able to reproduce the same error with gcc 3.4.6.
> The purpose of the test is to verify the conformance of the <cwchar> header WRT namespace cleanliness (i.e., that symbols like struct tm are defined in namespace std and not also in the global scope). The test is designed to fail at runtime (via assertions) rather than at compile time but it looks like the implementation of the test (or maybe even its
> design) is broken. In any case, the fact that the test doesn't compile suggests there is a problem with the header.
> The compilation errors for the simple program below confirm this. Can you open an issue for this problem and reference this thread in the archive in the issue?
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }
> gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.4.6-11S/include
> -I/amd/devco/sebor/stdcxx/../rwtest
> -I/amd/devco/sebor/stdcxx/../rwtest/include
> -I/amd/devco/sebor/stdcxx/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
> -Wcast-align   t.cpp
> t.cpp: In function `int main()':
> t.cpp:5: error: `tm' is not a member of `std'
> t.cpp:5: error: expected `;' before "tmb"
> make: *** [t.o] Error 1
> Thanks
> Martin
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (STDCXX-364) [gcc/Linux] std::tm not declared in

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov closed STDCXX-364.
--------------------------------

    Resolution: Fixed

> [gcc/Linux] std::tm not declared in <cwchar>
> --------------------------------------------
>
>                 Key: STDCXX-364
>                 URL: https://issues.apache.org/jira/browse/STDCXX-364
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 21. Strings
>    Affects Versions: 4.1.3
>         Environment: Linux, gcc 3.4.6 - 4.1.2 
>            Reporter: Scott (Yu) Zhong
>         Assigned To: Farid Zaripov
>             Fix For: 4.2
>
>
> getting this error:
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: 'tm' does not name a type
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: 'test_tm' in namespace 'std::Nested' does not name a type
> -----------------------------------------------------------------------------------------
> Martin Sebor [m...@roguewave.com]
> I was able to reproduce the same error with gcc 3.4.6.
> The purpose of the test is to verify the conformance of the <cwchar> header WRT namespace cleanliness (i.e., that symbols like struct tm are defined in namespace std and not also in the global scope). The test is designed to fail at runtime (via assertions) rather than at compile time but it looks like the implementation of the test (or maybe even its
> design) is broken. In any case, the fact that the test doesn't compile suggests there is a problem with the header.
> The compilation errors for the simple program below confirm this. Can you open an issue for this problem and reference this thread in the archive in the issue?
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }
> gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.4.6-11S/include
> -I/amd/devco/sebor/stdcxx/../rwtest
> -I/amd/devco/sebor/stdcxx/../rwtest/include
> -I/amd/devco/sebor/stdcxx/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
> -Wcast-align   t.cpp
> t.cpp: In function `int main()':
> t.cpp:5: error: `tm' is not a member of `std'
> t.cpp:5: error: expected `;' before "tmb"
> make: *** [t.o] Error 1
> Thanks
> Martin
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (STDCXX-364) [gcc/Linux] std::tm not declared in

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov reassigned STDCXX-364:
------------------------------------

    Assignee: Farid Zaripov  (was: Martin Sebor)

> [gcc/Linux] std::tm not declared in <cwchar>
> --------------------------------------------
>
>                 Key: STDCXX-364
>                 URL: https://issues.apache.org/jira/browse/STDCXX-364
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 21. Strings
>    Affects Versions: 4.1.3
>         Environment: Linux, gcc 3.4.6 - 4.1.2 
>            Reporter: Scott (Yu) Zhong
>         Assigned To: Farid Zaripov
>             Fix For: 4.2
>
>
> getting this error:
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: 'tm' does not name a type
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: 'test_tm' in namespace 'std::Nested' does not name a type
> -----------------------------------------------------------------------------------------
> Martin Sebor [m...@roguewave.com]
> I was able to reproduce the same error with gcc 3.4.6.
> The purpose of the test is to verify the conformance of the <cwchar> header WRT namespace cleanliness (i.e., that symbols like struct tm are defined in namespace std and not also in the global scope). The test is designed to fail at runtime (via assertions) rather than at compile time but it looks like the implementation of the test (or maybe even its
> design) is broken. In any case, the fact that the test doesn't compile suggests there is a problem with the header.
> The compilation errors for the simple program below confirm this. Can you open an issue for this problem and reference this thread in the archive in the issue?
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }
> gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.4.6-11S/include
> -I/amd/devco/sebor/stdcxx/../rwtest
> -I/amd/devco/sebor/stdcxx/../rwtest/include
> -I/amd/devco/sebor/stdcxx/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
> -Wcast-align   t.cpp
> t.cpp: In function `int main()':
> t.cpp:5: error: `tm' is not a member of `std'
> t.cpp:5: error: expected `;' before "tmb"
> make: *** [t.o] Error 1
> Thanks
> Martin
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STDCXX-364) [Linux] gcc 21.cwchar.cpp tm error

Posted by "Scott (Yu) Zhong (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482250 ] 

Scott (Yu) Zhong commented on STDCXX-364:
-----------------------------------------

original mail: http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200703.mbox/%3c45FEF450.4030304@roguewave.com%3e

> [Linux] gcc 21.cwchar.cpp tm error
> ----------------------------------
>
>                 Key: STDCXX-364
>                 URL: https://issues.apache.org/jira/browse/STDCXX-364
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 21. Strings
>    Affects Versions: 4.2
>         Environment: Linux, gcc 3.4.6 - 4.1.2 
>            Reporter: Scott (Yu) Zhong
>
> getting this error:
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: 'tm' does not name a type
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: 'test_tm' in namespace 'std::Nested' does not name a type
> -----------------------------------------------------------------------------------------
> Martin Sebor [sebor@roguewave.com]
> I was able to reproduce the same error with gcc 3.4.6.
> The purpose of the test is to verify the conformance of the <cwchar> header WRT namespace cleanliness (i.e., that symbols like struct tm are defined in namespace std and not also in the global scope). The test is designed to fail at runtime (via assertions) rather than at compile time but it looks like the implementation of the test (or maybe even its
> design) is broken. In any case, the fact that the test doesn't compile suggests there is a problem with the header.
> The compilation errors for the simple program below confirm this. Can you open an issue for this problem and reference this thread in the archive in the issue?
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }
> gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.4.6-11S/include
> -I/amd/devco/sebor/stdcxx/../rwtest
> -I/amd/devco/sebor/stdcxx/../rwtest/include
> -I/amd/devco/sebor/stdcxx/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
> -Wcast-align   t.cpp
> t.cpp: In function `int main()':
> t.cpp:5: error: `tm' is not a member of `std'
> t.cpp:5: error: expected `;' before "tmb"
> make: *** [t.o] Error 1
> Thanks
> Martin
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (STDCXX-364) [gcc/Linux] std::tm not declared in

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor closed STDCXX-364.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 4.2

> [gcc/Linux] std::tm not declared in <cwchar>
> --------------------------------------------
>
>                 Key: STDCXX-364
>                 URL: https://issues.apache.org/jira/browse/STDCXX-364
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 21. Strings
>    Affects Versions: 4.1.3
>         Environment: Linux, gcc 3.4.6 - 4.1.2 
>            Reporter: Scott (Yu) Zhong
>         Assigned To: Martin Sebor
>             Fix For: 4.2
>
>
> getting this error:
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: reference to 'tm' is ambiguous
> /usr/include/../include/time.h:135: error: candidates are: struct tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:550: error:                 struct Fallback::tm
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:568: error: 'tm' does not name a type
> /home/scottz/stdcxx/tests/strings/21.cwchar.cpp:577: error: 'test_tm' in namespace 'std::Nested' does not name a type
> -----------------------------------------------------------------------------------------
> Martin Sebor [m...@roguewave.com]
> I was able to reproduce the same error with gcc 3.4.6.
> The purpose of the test is to verify the conformance of the <cwchar> header WRT namespace cleanliness (i.e., that symbols like struct tm are defined in namespace std and not also in the global scope). The test is designed to fail at runtime (via assertions) rather than at compile time but it looks like the implementation of the test (or maybe even its
> design) is broken. In any case, the fact that the test doesn't compile suggests there is a problem with the header.
> The compilation errors for the simple program below confirm this. Can you open an issue for this problem and reference this thread in the archive in the issue?
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }
> gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -D_RWSTDDEBUG -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-gcc-3.4.6-11S/include
> -I/amd/devco/sebor/stdcxx/../rwtest
> -I/amd/devco/sebor/stdcxx/../rwtest/include
> -I/amd/devco/sebor/stdcxx/tests/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long 
> -Wcast-align   t.cpp
> t.cpp: In function `int main()':
> t.cpp:5: error: `tm' is not a member of `std'
> t.cpp:5: error: expected `;' before "tmb"
> make: *** [t.o] Error 1
> Thanks
> Martin
> $ cat t.cpp && nice make t
> #include <cwchar>
> int main ()
> {
>      std::tm tmb = { 0 };
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.