public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46670] New: ICE with 4.6.0 2010-11-26 with c++0x, in TBB's <atomic> header
@ 2010-11-26  4:27 jeffrey.donner at gmail dot com
  2010-11-26 15:46 ` [Bug c++/46670] " hjl.tools at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jeffrey.donner at gmail dot com @ 2010-11-26  4:27 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE with 4.6.0 2010-11-26 with c++0x, in TBB's
                    <atomic> header
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jeffrey.donner@gmail.com


Created attachment 22536
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22536
Basically the pre-processed TBB <atomic> header file as included by a .cpp

It doesn't happen without the -std=c++0x flag. 

Command line. Pre-processed, mostly-TBB-including file attached (it's the
open-source one, v3.0.3 I think.) It's renamed to .ii.cpp to satisfy the
content-type checker. 

jd@shade:~/projects/tbb-play$ g++ -v -save-temps -std=c++0x
-I/usr/local/tbb/include provoke.cpp
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/local/gcc-svn/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/usr/local/gcc-svn
--disable-multilib --enable-languages=c,c++
Thread model: posix
gcc version 4.6.0 20101126 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++0x' '-I'
'/usr/local/tbb/include' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/local/gcc-svn/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/cc1plus -E
-quiet -v -I /usr/local/tbb/include -D_GNU_SOURCE provoke.cpp -mtune=generic
-march=x86-64 -std=c++0x -fpch-preprocess -o provoke.ii
ignoring nonexistent directory
"/usr/local/gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/tbb/include

/usr/local/gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0

/usr/local/gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/x86_64-unknown-linux-gnu

/usr/local/gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/backward
 /usr/local/gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/include
 /usr/local/include
 /usr/local/gcc-svn/include
 /usr/local/gcc-svn/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++0x' '-I'
'/usr/local/tbb/include' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/local/gcc-svn/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/cc1plus
-fpreprocessed provoke.ii -quiet -dumpbase provoke.cpp -mtune=generic
-march=x86-64 -auxbase provoke -std=c++0x -version -o provoke.s
GNU C++ (GCC) version 4.6.0 20101126 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.6.0 20101126 (experimental), GMP version
4.3.2, MPFR version 2.4.2-p1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.6.0 20101126 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.6.0 20101126 (experimental), GMP version
4.3.2, MPFR version 2.4.2-p1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 031a1f3491053d565cf85073149b7157
In file included from /usr/local/tbb/include/tbb/atomic.h:41:0,
                 from provoke.cpp:1:
/usr/local/tbb/include/tbb/tbb_machine.h: In function ‘T __TBB_ReverseBits(T)’:
/usr/local/tbb/include/tbb/tbb_machine.h:686:66: internal compiler error: in
dependent_type_p, at cp/pt.c:17928
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c++/46670] ICE with 4.6.0 2010-11-26 with c++0x, in TBB's <atomic> header
  2010-11-26  4:27 [Bug c++/46670] New: ICE with 4.6.0 2010-11-26 with c++0x, in TBB's <atomic> header jeffrey.donner at gmail dot com
@ 2010-11-26 15:46 ` hjl.tools at gmail dot com
  2010-11-26 15:55 ` hjl.tools at gmail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-26 15:46 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.11.26 15:32:56
                 CC|                            |jason at redhat dot com
   Target Milestone|---                         |4.6.0
     Ever Confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-26 15:32:56 UTC ---
It is caused by revision 166167:

http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg00053.html


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

* [Bug c++/46670] ICE with 4.6.0 2010-11-26 with c++0x, in TBB's <atomic> header
  2010-11-26  4:27 [Bug c++/46670] New: ICE with 4.6.0 2010-11-26 with c++0x, in TBB's <atomic> header jeffrey.donner at gmail dot com
  2010-11-26 15:46 ` [Bug c++/46670] " hjl.tools at gmail dot com
@ 2010-11-26 15:55 ` hjl.tools at gmail dot com
  2010-11-29 11:12 ` [Bug c++/46670] [4.6 Regression] ICE in dependent_type_p, at cp/pt.c:17553 redi at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-26 15:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-26 15:46:03 UTC ---
[hjl@gnu-35 delta]$ cat testcase.cc
extern unsigned char __TBB_ReverseByte(unsigned char src);
extern unsigned char *reversed;
template<typename T> T __TBB_ReverseBits(T src)
{
  unsigned char *original = (unsigned char *) &src;
  for( int i = sizeof(T)-1; i--; )
    reversed[i] = __TBB_ReverseByte( original[sizeof(T)-i-1] );
}
[hjl@gnu-35 delta]$ /export/gnu/import/rrs/166167/usr/bin/gcc -std=c++0x -S
testcase.cc
testcase.cc: In function \u2018T __TBB_ReverseBits(T)\u2019:
testcase.cc:7:62: internal compiler error: in dependent_type_p, at
cp/pt.c:17553
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[hjl@gnu-35 delta]$


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

* [Bug c++/46670] [4.6 Regression] ICE in dependent_type_p, at cp/pt.c:17553
  2010-11-26  4:27 [Bug c++/46670] New: ICE with 4.6.0 2010-11-26 with c++0x, in TBB's <atomic> header jeffrey.donner at gmail dot com
  2010-11-26 15:46 ` [Bug c++/46670] " hjl.tools at gmail dot com
  2010-11-26 15:55 ` hjl.tools at gmail dot com
@ 2010-11-29 11:12 ` redi at gcc dot gnu.org
  2010-12-15 19:22 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2010-11-29 11:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-11-29 11:05:09 UTC ---
*** Bug 46669 has been marked as a duplicate of this bug. ***


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

* [Bug c++/46670] [4.6 Regression] ICE in dependent_type_p, at cp/pt.c:17553
  2010-11-26  4:27 [Bug c++/46670] New: ICE with 4.6.0 2010-11-26 with c++0x, in TBB's <atomic> header jeffrey.donner at gmail dot com
                   ` (2 preceding siblings ...)
  2010-11-29 11:12 ` [Bug c++/46670] [4.6 Regression] ICE in dependent_type_p, at cp/pt.c:17553 redi at gcc dot gnu.org
@ 2010-12-15 19:22 ` redi at gcc dot gnu.org
  2010-12-17 17:47 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2010-12-15 19:22 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc at jey dot kottalam.net

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-12-15 19:22:41 UTC ---
*** Bug 46968 has been marked as a duplicate of this bug. ***


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

* [Bug c++/46670] [4.6 Regression] ICE in dependent_type_p, at cp/pt.c:17553
  2010-11-26  4:27 [Bug c++/46670] New: ICE with 4.6.0 2010-11-26 with c++0x, in TBB's <atomic> header jeffrey.donner at gmail dot com
                   ` (3 preceding siblings ...)
  2010-12-15 19:22 ` redi at gcc dot gnu.org
@ 2010-12-17 17:47 ` jason at gcc dot gnu.org
  2010-12-18  4:08 ` jason at gcc dot gnu.org
  2010-12-18  9:36 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2010-12-17 17:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2010-12-17 17:47:32 UTC ---
Author: jason
Date: Fri Dec 17 17:47:27 2010
New Revision: 167993

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167993
Log:
    PR c++/46670
    * pt.c (value_dependent_expression_p) [ARRAY_REF]: Handle
    properly.

Added:
    trunk/gcc/testsuite/g++.dg/constexpr-null1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/46670] [4.6 Regression] ICE in dependent_type_p, at cp/pt.c:17553
  2010-11-26  4:27 [Bug c++/46670] New: ICE with 4.6.0 2010-11-26 with c++0x, in TBB's <atomic> header jeffrey.donner at gmail dot com
                   ` (4 preceding siblings ...)
  2010-12-17 17:47 ` jason at gcc dot gnu.org
@ 2010-12-18  4:08 ` jason at gcc dot gnu.org
  2010-12-18  9:36 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2010-12-18  4:08 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zsojka at seznam dot cz

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2010-12-18 04:08:10 UTC ---
*** Bug 46992 has been marked as a duplicate of this bug. ***


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

* [Bug c++/46670] [4.6 Regression] ICE in dependent_type_p, at cp/pt.c:17553
  2010-11-26  4:27 [Bug c++/46670] New: ICE with 4.6.0 2010-11-26 with c++0x, in TBB's <atomic> header jeffrey.donner at gmail dot com
                   ` (5 preceding siblings ...)
  2010-12-18  4:08 ` jason at gcc dot gnu.org
@ 2010-12-18  9:36 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-12-18  9:36 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-12-18 09:36:16 UTC ---
This is fixed now.


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

end of thread, other threads:[~2010-12-18  9:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-26  4:27 [Bug c++/46670] New: ICE with 4.6.0 2010-11-26 with c++0x, in TBB's <atomic> header jeffrey.donner at gmail dot com
2010-11-26 15:46 ` [Bug c++/46670] " hjl.tools at gmail dot com
2010-11-26 15:55 ` hjl.tools at gmail dot com
2010-11-29 11:12 ` [Bug c++/46670] [4.6 Regression] ICE in dependent_type_p, at cp/pt.c:17553 redi at gcc dot gnu.org
2010-12-15 19:22 ` redi at gcc dot gnu.org
2010-12-17 17:47 ` jason at gcc dot gnu.org
2010-12-18  4:08 ` jason at gcc dot gnu.org
2010-12-18  9:36 ` paolo.carlini at oracle 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).