public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49837] New: File with UTF-8 BOM, included from pch, caused compilation error
@ 2011-07-25 10:23 woodroof at gmail dot com
  2011-07-25 10:24 ` [Bug c++/49837] " woodroof at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: woodroof at gmail dot com @ 2011-07-25 10:23 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: File with UTF-8 BOM, included from pch, caused
                    compilation error
           Product: gcc
           Version: 4.4.5
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: woodroof@gmail.com


Created attachment 24823
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24823
Header file with bom

gcc -v:
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.4.4-14ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.4 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--disable-werror --with-arch-32=i686 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)

Failed attempt:
g++ -x c++-header -c stable.h -o stable.gch/c++
g++ -include ./stable 1.cpp

Output:
In file included from stable.h:1,
                 from 1.cpp:1:
1.h:4: error: redefinition of ‘template<class A, class B> B convert(A)’
1.h:4: error: ‘template<class A, class B> B convert(A)’ previously declared
here

Successful:
g++ 1.cpp

Empty output.


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

* [Bug c++/49837] File with UTF-8 BOM, included from pch, caused compilation error
  2011-07-25 10:23 [Bug c++/49837] New: File with UTF-8 BOM, included from pch, caused compilation error woodroof at gmail dot com
@ 2011-07-25 10:24 ` woodroof at gmail dot com
  2011-07-25 10:25 ` woodroof at gmail dot com
  2013-09-25  5:22 ` [Bug pch/49837] " woodroof at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: woodroof at gmail dot com @ 2011-07-25 10:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Danil Ilinykh <woodroof at gmail dot com> 2011-07-25 10:23:30 UTC ---
Created attachment 24824
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24824
Main file


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

* [Bug c++/49837] File with UTF-8 BOM, included from pch, caused compilation error
  2011-07-25 10:23 [Bug c++/49837] New: File with UTF-8 BOM, included from pch, caused compilation error woodroof at gmail dot com
  2011-07-25 10:24 ` [Bug c++/49837] " woodroof at gmail dot com
@ 2011-07-25 10:25 ` woodroof at gmail dot com
  2013-09-25  5:22 ` [Bug pch/49837] " woodroof at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: woodroof at gmail dot com @ 2011-07-25 10:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Danil Ilinykh <woodroof at gmail dot com> 2011-07-25 10:23:51 UTC ---
Created attachment 24825
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24825
Precompiled header


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

* [Bug pch/49837] File with UTF-8 BOM, included from pch, caused compilation error
  2011-07-25 10:23 [Bug c++/49837] New: File with UTF-8 BOM, included from pch, caused compilation error woodroof at gmail dot com
  2011-07-25 10:24 ` [Bug c++/49837] " woodroof at gmail dot com
  2011-07-25 10:25 ` woodroof at gmail dot com
@ 2013-09-25  5:22 ` woodroof at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: woodroof at gmail dot com @ 2013-09-25  5:22 UTC (permalink / raw)
  To: gcc-bugs

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

Danil Ilinykh <woodroof at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Danil Ilinykh <woodroof at gmail dot com> ---
Bug 56549 has better description of the error.

*** This bug has been marked as a duplicate of bug 56549 ***


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

end of thread, other threads:[~2013-09-25  5:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-25 10:23 [Bug c++/49837] New: File with UTF-8 BOM, included from pch, caused compilation error woodroof at gmail dot com
2011-07-25 10:24 ` [Bug c++/49837] " woodroof at gmail dot com
2011-07-25 10:25 ` woodroof at gmail dot com
2013-09-25  5:22 ` [Bug pch/49837] " woodroof at gmail dot com

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).