This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/60714] New: comments in template instantiation are interpreted


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

            Bug ID: 60714
           Summary: comments in template instantiation are interpreted
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jmichae3 at yahoo dot com

Created attachment 32492
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32492&action=edit
.ii file from -save-temps

#include <ostream>
#include <streambuf>
#include <sstream>
#include <vector>
#include <string>
#include <ios>
#include <initializer_list>
#include <uchar.h>
#include <wchar.h>
typedef std::vector<std::u16string> Vu16S;
typedef std::basic_ostringstream<char16_t, std::basic_stringbuf::int_type/*,
std::allocator<char16_t>*/ > u16ostringstream;
typedef std::basic_ostringstream<char32_t, std::basic_stringbuf::int_type/*,
std::allocator<char32_t>*/ > u32ostringstream;

there were many pages of errors in my code, but the highlights were

Sun 03/30/2014
16:41:39.78|D:\prj\df\df-3.19\win\tests|>"f:\x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\bin\g++.exe"
-Wall -Wextra -v -sav
e-temps  -fno-strict-aliasing -fwrapv -lstdc++ -Wall -W -Wextra -Xlinker
-Map=ostream2b.map -std=c++11 -Ofast -o "ostream2b.exe" "ostream2b.cpp"        
1>ostre
am2b.err
Using built-in specs.
COLLECT_GCC=f:\x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\bin\g++.exe
COLLECT_LTO_WRAPPER=f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-trunk/configure --host=x86_64-w64-mingw32
--build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64
--with-sysr
oot=/d/mingwtrunk/x86_64-trunk-win32-sjlj-rt_v4/mingw64
--with-gxx-include-dir=/mingw64/x86_64-w64-mingw32/include/c++ --enable-shared
--enable-static --enable-
targets=all --enable-multilib --enable-languages=c,c++,lto
--enable-libstdcxx-time=yes --enable-threads=win32 --enable-libgomp
--enable-lto --enable-graphite --
enable-checking=release --enable-fully-dynamic-string
--enable-version-specific-runtime-libs --enable-sjlj-exceptions
--disable-isl-version-check --disable-cloo
g-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug
--enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls
--disable-werror --d
isable-symvers --with-gnu-as --with-gnu-ld --with-arch-32=i686
--with-arch-64=nocona --with-tune-32=generic --with-tune-64=core2
--with-libiconv --with-system-z
lib --with-gmp=/d/mingwtrunk/prerequisites/x86_64-w64-mingw32-static
--with-mpfr=/d/mingwtrunk/prerequisites/x86_64-w64-mingw32-static
--with-mpc=/d/mingwtrunk/
prerequisites/x86_64-w64-mingw32-static
--with-isl=/d/mingwtrunk/prerequisites/x86_64-w64-mingw32-static
--with-cloog=/d/mingwtrunk/prerequisites/x86_64-w64-min
gw32-static --enable-cloog-backend=isl --with-pkgversion='x86_64-win32-sjlj,
Built by MinGW-W64 project'
--with-bugurl=http://sourceforge.net/projects/mingw-w64
 CFLAGS='-O2 -pipe
-I/d/mingwtrunk/x86_64-trunk-win32-sjlj-rt_v4/mingw64/opt/include
-I/d/mingwtrunk/prerequisites/x86_64-zlib-static/include -I/d/mingwtrunk/pr
erequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe
-I/d/mingwtrunk/x86_64-trunk-win32-sjlj-rt_v4/mingw64/opt/include
-I/d/mingwtrunk/prerequisit
es/x86_64-zlib-static/include
-I/d/mingwtrunk/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=
LDFLAGS='-pipe -L/d/mingwtrunk/x86_64-trunk-win32-sjlj-
rt_v4/mingw64/opt/lib -L/d/mingwtrunk/prerequisites/x86_64-zlib-static/lib
-L/d/mingwtrunk/prerequisites/x86_64-w64-mingw32-static/lib'
Thread model: win32
gcc version 4.9.0 20140218 (experimental) (x86_64-win32-sjlj, Built by
MinGW-W64 project)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-fno-strict-aliasing' '-fwrapv' '-Wall'
'-Wextra' '-std=c++11' '-Ofast' '-o' 'ostream2b.exe' '-shared-libgcc'
'-mtune=co
re2' '-march=nocona'

f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/cc1plus.exe
-E -quiet -v -iprefix f:\x86_64-4.
9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.9.0/
-U_REENTRANT ostream2b.cpp -mtune=core2 -march=nocona -std=c++
11 -Wall -Wextra -fno-strict-aliasing -fwrapv -Ofast -fpch-preprocess -o
ostream2b.ii
ignoring duplicate directory
"f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.9.0/include"
ignoring nonexistent directory
"D:/mingwtrunk/x86_64-trunk-win32-sjlj-rt_v4/mingw64D:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../include"
ignoring duplicate directory
"f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.9.0/include-fixed"

ignoring duplicate directory
"f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x8
6_64-w64-mingw32/include"
ignoring nonexistent directory
"D:/mingwtrunk/x86_64-trunk-win32-sjlj-rt_v4/mingw64/mingw/include"
#include "..." search starts here:
#include <...> search starts here:

f:\x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.9.0/include

f:\x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.9.0/include-fixed

f:\x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x86_64-w64-mingw32/include

f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++

f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32

f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++/backward
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-fno-strict-aliasing' '-fwrapv' '-Wall'
'-Wextra' '-std=c++11' '-Ofast' '-o' 'ostream2b.exe' '-shared-libgcc'
'-mtune=co
re2' '-march=nocona'

f:/x86_64-4.9.0-snapshot-20140219-rev207854-win32-sjlj-rt_v4/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/cc1plus.exe
-fpreprocessed ostream2b.ii -quiet
 -dumpbase ostream2b.cpp -mtune=core2 -march=nocona -auxbase ostream2b -Ofast
-Wall -Wextra -std=c++11 -version -fno-strict-aliasing -fwrapv -o ostream2b.s
GNU C++ (x86_64-win32-sjlj, Built by MinGW-W64 project) version 4.9.0 20140218
(experimental) (x86_64-w64-mingw32)
        compiled by GNU C version 4.9.0 20140218 (experimental), GMP version
5.1.3, MPFR version 3.1.2-p5, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (x86_64-win32-sjlj, Built by MinGW-W64 project) version 4.9.0 20140218
(experimental) (x86_64-w64-mingw32)
        compiled by GNU C version 4.9.0 20140218 (experimental), GMP version
5.1.3, MPFR version 3.1.2-p5, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3d656286c2fbf9376b6c665d39c3c502
ostream2b.cpp:11:75: error: template argument 2 is invalid
 typedef std::basic_ostringstream<char16_t, std::basic_stringbuf::int_type/*,
std::allocator<char16_t>*/ > u16ostringstream;
                                                                           ^
ostream2b.cpp:11:93: error: invalid type in declaration before ';' token
 typedef std::basic_ostringstream<char16_t, std::basic_stringbuf::int_type/*,
std::allocator<char16_t>*/ > u16ostringstream;
                                                                               
             ^
ostream2b.cpp:12:75: error: template argument 2 is invalid
 typedef std::basic_ostringstream<char32_t, std::basic_stringbuf::int_type/*,
std::allocator<char32_t>*/ > u32ostringstream;
                                                                           ^
ostream2b.cpp:12:93: error: invalid type in declaration before ';' token
 typedef std::basic_ostringstream<char32_t, std::basic_stringbuf::int_type/*,
std::allocator<char32_t>*/ > u32ostringstream;
                                                                               
             ^
ostream2b.cpp:17:97: error: template argument 2 is invalid
 typedef std::basic_streambuf<char16_t, std::basic_streambuf::int_type,
std::allocator<char16_t> > u16streambuf;
                                                                               
                 ^
ostream2b.cpp:17:111: error: invalid type in declaration before ';' token
 typedef std::basic_streambuf<char16_t, std::basic_streambuf::int_type,
std::allocator<char16_t> > u16streambuf;
                                                                               
                               ^
ostream2b.cpp:18:97: error: template argument 2 is invalid
 typedef std::basic_streambuf<char32_t, std::basic_streambuf::int_type,
std::allocator<char32_t> > u32streambuf;
                                                                               
                 ^
ostream2b.cpp:18:111: error: invalid type in declaration before ';' token
 typedef std::basic_streambuf<char32_t, std::basic_streambuf::int_type,
std::allocator<char32_t> > u32streambuf;
                                                                               
                               ^


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]