public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/13361] New: const wchar_t * strings not stored in pch
@ 2003-12-08 21:42 thomas dot francis at pkware dot com
  2003-12-08 23:02 ` [Bug pch/13361] " pinskia at gcc dot gnu dot org
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: thomas dot francis at pkware dot com @ 2003-12-08 21:42 UTC (permalink / raw)
  To: gcc-bugs

This is using gcc (GCC) 3.4 20031203 (experimental):
-------------
%cat test.hh
#include <stdio.h>

const char test_var2[] = "normal string";
const wchar_t test_var[] = L"wide string";

%cat test.cpp
#include "test.hh"

int main(int argc, char **argv)
{
   printf("wide: %S\r\n", test_var);
   printf("normal: %s\r\n", test_var2);

   return 0;
}
-----

Create test.hh.gch using:

%g++ test.hh

Create testprog using:

%g++ -o testprog test.cc

The output of testprog is:

wide: 
normal: normal string

If I remove test.hh.gch, and then recompile testprog, the output is:

wide: wide string
normal: normal string

-- 
           Summary: const wchar_t * strings not stored in pch
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: pch
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: thomas dot francis at pkware dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: hppa2.0-hp-hpux10.20


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2004-09-18  6:45 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-08 21:42 [Bug pch/13361] New: const wchar_t * strings not stored in pch thomas dot francis at pkware dot com
2003-12-08 23:02 ` [Bug pch/13361] " pinskia at gcc dot gnu dot org
2003-12-09  7:46 ` pinskia at gcc dot gnu dot org
2003-12-19 11:32 ` pinskia at gcc dot gnu dot org
2004-01-12 23:18 ` geoffk at gcc dot gnu dot org
2004-01-15 17:32 ` geoffk at gcc dot gnu dot org
2004-01-16  7:20 ` cvs-commit at gcc dot gnu dot org
2004-01-16  7:22 ` geoffk at gcc dot gnu dot org
2004-01-16  7:23 ` geoffk at gcc dot gnu dot org
2004-01-27 13:07 ` cvs-commit at gcc dot gnu dot org
2004-02-05 21:56 ` cvs-commit at gcc dot gnu dot org
2004-02-05 22:01 ` cvs-commit at gcc dot gnu dot org
2004-02-06  2:46 ` pinskia at gcc dot gnu dot org
2004-02-06 20:48 ` geoffk at gcc dot gnu dot org
2004-03-16 16:26 ` pinskia at gcc dot gnu dot org
2004-04-05 17:23 ` pinskia at gcc dot gnu dot org
2004-06-04 22:07 ` geoffk at gcc dot gnu dot org
2004-06-09 19:23 ` mmitchel at gcc dot gnu dot org
2004-06-09 19:31 ` ro at techfak dot uni-bielefeld dot de
2004-06-18 23:45 ` mmitchel at gcc dot gnu dot org
2004-06-19  0:11 ` geoffk at geoffk dot org
2004-08-29 17:57 ` mmitchel at gcc dot gnu dot org
2004-09-16 23:40 ` geoffk at gcc dot gnu dot org
2004-09-18  5:51 ` cvs-commit at gcc dot gnu dot org
2004-09-18  6:45 ` geoffk at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).