[Bug c++/100131] [meta-bug] internal compiler error: in hashtab_chk_error, at hash-table.c:137

2023-04-17 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100131
Bug 100131 depends on bug 109531, which changed state.

Bug 109531 Summary: [13/14 Regression] Checking ICE with  hash table checking 
failed: equal operator returns true for a pair of values with a different hash 
value since r13-3292-gc2565a31c1622a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109531

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

[Bug c++/100131] [meta-bug] internal compiler error: in hashtab_chk_error, at hash-table.c:137

2021-04-17 Thread alexander.lelyakin at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100131

Alexander Lelyakin  changed:

   What|Removed |Added

 CC||alexander.lelyakin@googlema
   ||il.com

--- Comment #1 from Alexander Lelyakin  ---
Here: 

http://lelyakin.de/hashtab/in%20hashtab_chk_error/

You can find much more examples of this error.

[Bug c++/100131] New: [meta-bug] internal compiler error: in hashtab_chk_error, at hash-table.c:137

2021-04-17 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100131

Bug ID: 100131
   Summary: [meta-bug] internal compiler error: in
hashtab_chk_error, at hash-table.c:137
   Product: gcc
   Version: 11.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: hjl.tools at gmail dot com
Blocks: 12, 91190, 93907, 97093, 99445
  Target Milestone: ---

hash table checking failed: equal operator returns true for a pair of values
with a different hash value
/export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/g++.dg/modules/xtreme-tr1_b.C:4:25:
internal compiler error: in hashtab_chk_error, at hash-table.c:137
0x8f2583 hashtab_chk_error()
/export/gnu/import/git/sources/gcc/gcc/hash-table.c:137
0xb01265 hash_table::verify(spec_entry*
const&, unsigned int)
/export/gnu/import/git/sources/gcc/gcc/hash-table.h:1033
0xb017ee hash_table::find_slot_with_hash(spec_entry* const&, unsigned int,
insert_option)
/export/gnu/import/git/sources/gcc/gcc/hash-table.h:968
0xabe57b match_mergeable_specialization(bool, spec_entry*)
/export/gnu/import/git/sources/gcc/gcc/cp/pt.c:29961
0xa37998 trees_in::key_mergeable(int, merge_kind, tree_node*, tree_node*,
tree_node*, tree_node*, bool)
/export/gnu/import/git/sources/gcc/gcc/cp/module.cc:10670
0xa3b594 trees_in::decl_value()
/export/gnu/import/git/sources/gcc/gcc/cp/module.cc:7903
0xa343f7 trees_in::tree_node(bool)
/export/gnu/import/git/sources/gcc/gcc/cp/module.cc:9153
0xa3aa1b module_state::read_cluster(unsigned int)
/export/gnu/import/git/sources/gcc/gcc/cp/module.cc:14811
0xa3af1d module_state::load_section(unsigned int, binding_slot*)
/export/gnu/import/git/sources/gcc/gcc/cp/module.cc:18082
0xa3d6b5 module_state::read_language(bool)
/export/gnu/import/git/sources/gcc/gcc/cp/module.cc:18011
0xa3d87e direct_import
/export/gnu/import/git/sources/gcc/gcc/cp/module.cc:18877
0xaa4f97 cp_parser_translation_unit
/export/gnu/import/git/sources/gcc/gcc/cp/parser.c:4907
0xaa4f97 c_parse_file()
/export/gnu/import/git/sources/gcc/gcc/cp/parser.c:45268
0xbc9a9d c_common_parse_file()
/export/gnu/import/git/sources/gcc/gcc/c-family/c-opts.c:1218
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91190
[Bug 91190] [10 Regression] ICE on valid code: in hashtab_chk_error, at
hash-table.c:137
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93907
[Bug 93907] [10 Regression] internal compiler error: in hashtab_chk_error, at
hash-table.c:137
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97093
[Bug 97093] ICE on C++20 code when chaining requirements (in hashtab_chk_error,
at hash-table.c:137)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99445
[Bug 99445] [11 Regression] ICE in hashtab_chk_error, at hash-table.c:137 since
r11-7011-g6e0a231a4aa2407b
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12
[Bug 12] internal compiler error: in hashtab_chk_error, at hash-table.c:137

[Bug rtl-optimization/93730] [Bug] internal compiler error: in make_decl_rtl, at varasm.c:1375

2020-02-17 Thread akhilesh.k at samsung dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93730

--- Comment #3 from Akhilesh Kumar  ---
Please find test application to reproduce this issue 


bash-3.2# g++ -fdump-tree-all /tmp/akhilesh.cpp 
during RTL pass: expand
/tmp/akhilesh.cpp: In function 'int main()':
/tmp/akhilesh.cpp:4:15: internal compiler error: in make_decl_rtl, at
varasm.c:1375
4 |  unsigned int iDefaultGammaTable[3][GammaSeedCnt] = {{0,},};
  |   ^~
libbacktrace could not find executable to open

bash-3.2# cat /tmp/akhilesh.cpp 
int Seed=1024;
int main()
{
unsigned int DefaultGammaTable[3][Seed] = {{0,},};
return 0;
}


even same issue is reproducible with below test case also

akhilesh.k@DELL-BUILD10:~$ cat test.c 
int abc=1;
int main()
{
int array[1][abc] ={0};  << But work well if we changes from 0 t0 1 
return 0;
}

[Bug rtl-optimization/93730] [Bug] internal compiler error: in make_decl_rtl, at varasm.c:1375

2020-02-13 Thread akhilesh.k at samsung dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93730

--- Comment #2 from Akhilesh Kumar  ---
Working on Arm architecture.
I am trying to reproduce the same with sample test case

[Bug rtl-optimization/93730] [Bug] internal compiler error: in make_decl_rtl, at varasm.c:1375

2020-02-13 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93730

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2020-02-13
 Ever confirmed|0   |1

--- Comment #1 from Richard Biener  ---
Please provide a testcase.  What architecture is this on?

[Bug rtl-optimization/93730] New: [Bug] internal compiler error: in make_decl_rtl, at varasm.c:1375

2020-02-13 Thread akhilesh.k at samsung dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93730

Bug ID: 93730
   Summary: [Bug] internal compiler error: in make_decl_rtl, at
varasm.c:1375
   Product: gcc
   Version: 9.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rtl-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: akhilesh.k at samsung dot com
  Target Milestone: ---

Hello 

I am Getting "internal compiler error: in make_decl_rtl, at varasm.c:1375"
during RTL optimization, but works fine if i pass value instead of variable
name 


#g++ -c -Wno-format-truncation -Wno-narrowing MYTV/Picture.cpp
-I=/usr/include/kernel-headers/ -I=/usr/include/mylog/
-I/usr/include/kernel-interfaces/ 
during RTL pass: expand
/home/user/MY/Picture.cpp:1521:13: internal compiler error: in make_decl_rtl,
at varasm.c:1375
1521 | int GammaTable[RGB_LAST][SeedCnt] = {{0,},};   /Where my seed count
is 1024 
  | ^~

but code works fine if i pass direct Value in array 

-int GammaTable[RGB_LAST][SeedCnt] = {{0,},};
int GammaTable[RGB_LAST][1024] = {{0,},};
#g++ -c -Wno-format-truncation -Wno-narrowing MYTV/Picture.cpp
-I=/usr/include/kernel-headers/ -I=/usr/include/mylog/
-I/usr/include/kernel-interfaces/ 
#

Unfortunately I can share Picture.cpp code 
but I am trying to reproduce this issue with some sample test application

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread wadud.miah at nag dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

--- Comment #16 from wadud.miah at nag dot co.uk ---
I guess I just have to wait for a gfortran update in Fedora Core 23?

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

kargl at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||kargl at gcc dot gnu.org
 Resolution|--- |INVALID

--- Comment #15 from kargl at gcc dot gnu.org ---
(In reply to wadud.miah from comment #11)
> this issue has not been fully resolved. Please test with gfortran version
> 5.3.1

The bug is fixed in the 5-branch!  It is fixed in all active
branches.  That is the whole point of the testing that I've
shown.

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread wadud.miah at nag dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

--- Comment #14 from wadud.miah at nag dot co.uk ---
Do I need to compile with "-fcheck=mem" to get it working?

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

--- Comment #13 from Martin Liška  ---
Created attachment 39024
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39024=edit
Pre-processed source file

Minimal command line:
gfortran-5 pr72051.f90 -fcheck=mem

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed|2016-07-25 00:00:00 |2016-07-26
 Ever confirmed|0   |1

--- Comment #12 from Martin Liška  ---
I can really confirm that it fails with:

$ gcc --version
gcc-5 (SUSE Linux) 5.3.1 20160412 [gcc-5-branch revision 234894]

$ make
make -C /home/marxin/Programming/testcases/pr72051/pFUnit-3.2.7/source all
make[1]: Entering directory
'/home/marxin/Programming/testcases/pr72051/pFUnit-3.2.7/source'
gfortran-5 -c 
-I/home/marxin/Programming/testcases/pr72051/pFUnit-3.2.7/include
-I/home/marxin/Programming/testcases/pr72051/pFUnit-3.2.7/source -g -O0
-fbacktrace -fbounds-check -fcheck=mem -I../include -DBUILD_ROBUST -DGNU
-DLinux -I/home/marxin/Programming/testcases/pr72051/pFUnit-3.2.7/include
-DLONG_PTR -DGNU -o Exception.o Exception.F90
Exception.F90:325:0:

   allocate(this%exceptions(0))
 1
internal compiler error: in wide_int_to_tree, at tree.c:1464

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread wadud.miah at nag dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

wadud.miah at nag dot co.uk changed:

   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|INVALID |---

--- Comment #11 from wadud.miah at nag dot co.uk ---
this issue has not been fully resolved. Please test with gfortran version 5.3.1

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread wadud.miah at nag dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

--- Comment #10 from wadud.miah at nag dot co.uk ---
I find this a very unusual response :-( What's the purpose of testing other
compilers when the bug is in version 5.3.1? I'm not happy that the ticket has
been closed without asking me whether I am happy with the outcome. I would like
to re-open it and assign it to someone else.

Wadud.

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

--- Comment #9 from kargl at gcc dot gnu.org ---
(In reply to wadud.miah from comment #8)
> Hi kargl,
> 
> I am getting the bug with gfortran 5.3.1. could you try to reproduce the bug
> with that version?
> 
> Regards,
> Wadud.

It compiles with
gcc version 4.9.4 20160726 (prerelease) (GCC) 
gcc version 5.4.1 20160726 (GCC) 

I don't have 5.3.1 and don't intend to install it.

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread wadud.miah at nag dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

--- Comment #8 from wadud.miah at nag dot co.uk ---
Hi kargl,

I am getting the bug with gfortran 5.3.1. could you try to reproduce the bug
with that version?

Regards,
Wadud.

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

kargl at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||kargl at gcc dot gnu.org
 Resolution|--- |INVALID

--- Comment #7 from kargl at gcc dot gnu.org ---
After screwing around with the build system, I managed
to prove that both

gcc version 7.0.0 20160726 (experimental) (GCC)
gcc version 6.1.1 20160515 (GCC) 

compile the code without problems.

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

--- Comment #6 from kargl at gcc dot gnu.org ---
(In reply to wadud.miah from comment #2)
> Created attachment 39018 [details]
> source code to test gfortran bug
> 
> Hello,
> 
> I have attached the source code. Simply untar it and set FC to the gfortran
> you would like to test, and then type "make". Let me know if you would like
> any further information. 
> 
> Regards,
> Wadud.

Bull.

% setenv FC gfortran
% make
make: no target to make.

make: stopped in /usr/home/kargl/Downloads/pFUnit-3.2.7

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread wadud.miah at nag dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

--- Comment #5 from wadud.miah at nag dot co.uk ---
Hi Richard,

Thanks for the update. Do you have any time line for the next release that will
(hopefully) resolve this bug?

Regards,
Wadud.

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

Richard Biener  changed:

   What|Removed |Added

 Status|WAITING |UNCONFIRMED
 Ever confirmed|1   |0

--- Comment #4 from Richard Biener  ---
ISTR similar bugs so this might be a duplicate

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread wadud.miah at nag dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

--- Comment #3 from wadud.miah at nag dot co.uk ---
When I replied to your email, the mailing list rejected my email and flagged it
as spam. Could you please allow my emails to get through?

Thanks.

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-26 Thread wadud.miah at nag dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

--- Comment #2 from wadud.miah at nag dot co.uk ---
Created attachment 39018
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39018=edit
source code to test gfortran bug

Hello,

I have attached the source code. Simply untar it and set FC to the gfortran you
would like to test, and then type "make". Let me know if you would like any
further information. 

Regards,
Wadud.

[Bug fortran/72051] gfortran bug - internal compiler error

2016-07-25 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2016-07-25
 CC||marxin at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Martin Liška  ---
Can you please attach source code.

[Bug fortran/72051] New: gfortran bug - internal compiler error

2016-07-25 Thread wadud.miah at nag dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051

Bug ID: 72051
   Summary: gfortran bug - internal compiler error
   Product: gcc
   Version: 5.3.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
  Assignee: unassigned at gcc dot gnu.org
  Reporter: wadud.miah at nag dot co.uk
  Target Milestone: ---

I am using gfortran 5.3.1 and I am getting an internal compiler error:

[miahw@bengal pFUnit]$ gfortran --version
GNU Fortran (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6)

gfortran -c  -I/home/miahw/pFUnit/include -I/home/miahw/pFUnit/source -g -O0
-fbacktrace -fbounds-check -fcheck=mem -I../include -DBUILD_ROBUST -DGNU
-DLinux -I/home/miahw/pFUnit/include -DLONG_PTR -DGNU -o Exception.o
Exception.F90
Exception.F90:321:0:

   allocate(this%exceptions(0))
 1
internal compiler error: in wide_int_to_tree, at tree.c:1464
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.

any help will be appreciated.

Best regards,
Wadud.

[Bug rtl-optimization/32374] New: dataflow bug: internal compiler error: in reload_cse_simplify_operands, at postreload.c:396

2007-06-17 Thread ubizjak at gmail dot com
Current mainline GCC ICEs when compiling attached testcase:

g++ -O2 037.cpp

037.cpp: In function ‘void unix_parse_conf_file(FILE*, const char*, bool)’:
037.cpp:58: error: insn does not satisfy its constraints:
(insn 50 45 10 2 (set (reg/f:DI 54 virtual-stack-vars)
(reg:DI 0 ax)) 82 {*movdi_1_rex64} (nil))
037.cpp:58: internal compiler error: in reload_cse_simplify_operands, at
postreload.c:396
Please submit a full bug report,

This invalid RTL is created by new init-regs pass, trying to initialize
virtual-stack-vars:

(insn 45 6 9 2 (set (reg/f:DI 54 virtual-stack-vars)
(const_int 0 [0x0])) -1 (nil))

(insn 9 45 10 2 037.cpp:50 (clobber (mem/s/c:BLK (plus:DI (reg/f:DI 54
virtual-stack-vars)
(const_int -16 [0xfff0])) [4 A128])) -1 (nil))


-- 
   Summary: dataflow bug: internal compiler error: in
reload_cse_simplify_operands, at postreload.c:396
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ubizjak at gmail dot com
 GCC build triplet: x86_64-pc-gnu-linux
  GCC host triplet: x86_64-pc-gnu-linux
GCC target triplet: x86_64-pc-gnu-linux


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



[Bug rtl-optimization/32374] dataflow bug: internal compiler error: in reload_cse_simplify_operands, at postreload.c:396

2007-06-17 Thread ubizjak at gmail dot com


--- Comment #1 from ubizjak at gmail dot com  2007-06-17 14:50 ---
Created an attachment (id=13719)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13719action=view)
reduced testcase


-- 


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



Re: bug: internal compiler error

2005-09-05 Thread Eric Botcazou
 compiler failed in mid-compile of mysql source tree, -same-temps output
 added as attachment

We need the *.i file, not the *.s file.

-- 
Eric Botcazou


Re: bug: internal compiler error

2005-09-04 Thread Andrew Pinski


On Sep 4, 2005, at 9:26 PM, Marek Mandre wrote:


# g++ -save-temps -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=/usr/local
-DDATADIR=/usr/local/var -DSHAREDIR=/usr/local/share/mysql
-DHAVE_CONFIG_H -I. -I.. -I../innobase/include -I../include -I../regex
-I/usr/local/include-O3 -DDBUG_OFF-fno-implicit-templates
-fno-exceptions -fno-rtti -D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T -MT
sql_analyse.o -MD -MP -MF .deps/sql_analyse.Tpo -c -o sql_analyse.o
sql_analyse.cc
sql_analyse.cc: In member function 'virtual void 
field_longlong::add()':

sql_analyse.cc:506: internal compiler error: in invert_exp_1, at
jump.c:1719


This was PR 23454: http://gcc.gnu.org/PR23454.  It will be fixed in 
the

next release of 4.0, 4.0.2.

-- Pinski