public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ppalka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/98216] [C++20] std::array<double, N> template parameter error with negative values
Date: Mon, 14 Dec 2020 20:56:48 +0000	[thread overview]
Message-ID: <bug-98216-4-oma6eGaCy8@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-98216-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98216

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Related testcase which may or may not be caused by the same underlying bug:

$ cat testcase.C
template <double s> void foo() {}
template void foo<-1.0>();
template void foo<-2.0>();

$ g++ -std=c++20 testcase.C
testcase.C:3:26: error: Two symbols with same comdat_group are not linked by
the same_comdat_group list.
    3 | template void foo<-2.0>();                                              
      |                          ^  
_Z3fooILdffffffff00000000EEvv/1 (void foo() [with double s = -2.0e+0])
@0x7fdb12c4aee0         
  Type: function definition analyzed
  Visibility: force_output forced_by_abi no_reorder public weak
comdat_group:_Z3fooILdffffffff00000000EEvv one_only
  previous sharing asm name: 0
  References: 
  Referring:          
  Function flags: body
  Called by: 
  Calls:                                                                        
_Z3fooILdffffffff00000000EEvv/0 (void foo() [with double s = -1.0e+0])
@0x7fdb12c4add0
  Type: function definition analyzed                                            
  Visibility: force_output forced_by_abi no_reorder public weak
comdat_group:_Z3fooILdffffffff00000000EEvv one_only
  next sharing asm name: 1
  References: 
  Referring: 
  Function flags: body
  Called by: 
  Calls: 
testcase.C:3:26: internal compiler error: symtab_node::verify failed
0xbebe81 symtab_node::verify_symtab_nodes()
        /home/patrick/code/gcc/gcc/symtab.c:1406
0xc00586 symtab_node::checking_verify_symtab_nodes()
        /home/patrick/code/gcc/gcc/cgraph.h:675 
0xc00586 symbol_table::compile()
        /home/patrick/code/gcc/gcc/cgraphunit.c:2277
0xc02f67 symbol_table::compile()
        /home/patrick/code/gcc/gcc/cgraphunit.c:2274
0xc02f67 symbol_table::finalize_compilation_unit()
        /home/patrick/code/gcc/gcc/cgraphunit.c:2542

  parent reply	other threads:[~2020-12-14 20:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09 15:43 [Bug c++/98216] New: " emmanuel.le-trong@cnrs-orleans.fr
2020-12-09 16:04 ` [Bug c++/98216] " redi at gcc dot gnu.org
2020-12-10  7:33 ` rguenth at gcc dot gnu.org
2020-12-10 17:05 ` redi at gcc dot gnu.org
2020-12-10 17:16 ` redi at gcc dot gnu.org
2020-12-10 17:56 ` emmanuel.le-trong@cnrs-orleans.fr
2020-12-14 20:56 ` ppalka at gcc dot gnu.org [this message]
2021-07-27  8:08 ` [Bug c++/98216] [C++20] template mangling for double template argument is wrong pinskia at gcc dot gnu.org
2021-09-23 18:57 ` ppalka at gcc dot gnu.org
2021-09-23 19:01 ` ppalka at gcc dot gnu.org
2021-09-24 16:36 ` cvs-commit at gcc dot gnu.org
2021-09-24 19:36 ` emmanuel.le-trong@cnrs-orleans.fr
2021-10-06 14:15 ` cvs-commit at gcc dot gnu.org
2021-10-14 19:06 ` hq.ks at web dot de
2021-10-14 21:39 ` pinskia at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-98216-4-oma6eGaCy8@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).