public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100629] New: Regression from 10 symbol mismatch between class definition and use with optimization
@ 2021-05-17  0:06 mckelvey at maskull dot com
  2021-05-17  5:54 ` [Bug c++/100629] " mckelvey at maskull dot com
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: mckelvey at maskull dot com @ 2021-05-17  0:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100629
           Summary: Regression from 10 symbol mismatch between class
                    definition and use with optimization
           Product: gcc
           Version: 11.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mckelvey at maskull dot com
  Target Milestone: ---

Created attachment 50820
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50820&action=edit
Source of Break class

On gcc-11/12 I get undefined symbols on link. Like this:

/usr/bin/ld: header_edit.o:header_edit.cc:(.text.startup+0x36a): undefined
reference to
`_ZN13PatternDriver12BreakPatternC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_26ConflateIntegerScalarValueESB_RKNS_12TemplateEnumIL_ZNS_16complement_namesB5cxx11EEL_ZNS_14COMPLEMENTENUMEEEE'

>From main program header_edit.o:

_ZN13PatternDriver12BreakPatternC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_26ConflateIntegerScalarValueESB_RKNS_12TemplateEnumIL_ZNS_16complement_namesB5cxx11EEL_ZNS_14COMPLEMENTENUMEEEE

from BreakPattern.o:

_ZN13PatternDriver12BreakPatternC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_26ConflateIntegerScalarValueESB_RKNS_12TemplateEnumIL_ZNS_16complement_namesEEL_ZNS_14COMPLEMENTENUMEEEE

The problem is that the second string has the sequence B5cxx11. That sequence
goes away when I change the optimization level from level 3 to default. I don't
know how to reduce to a simple test case.

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

end of thread, other threads:[~2021-08-12  0:52 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-17  0:06 [Bug c++/100629] New: Regression from 10 symbol mismatch between class definition and use with optimization mckelvey at maskull dot com
2021-05-17  5:54 ` [Bug c++/100629] " mckelvey at maskull dot com
2021-05-17  5:59 ` mckelvey at maskull dot com
2021-05-17  7:00 ` pinskia at gcc dot gnu.org
2021-05-17  7:00 ` pinskia at gcc dot gnu.org
2021-05-17  7:01 ` pinskia at gcc dot gnu.org
2021-05-17  7:08 ` pinskia at gcc dot gnu.org
2021-05-17  9:36 ` redi at gcc dot gnu.org
2021-05-17  9:40 ` redi at gcc dot gnu.org
2021-05-17 16:32 ` mckelvey at maskull dot com
2021-05-17 16:34 ` mckelvey at maskull dot com
2021-05-17 16:57 ` [Bug c++/100629] Regression from 10 symbol mismatch between class definition and use with/without optimization mckelvey at maskull dot com
2021-05-17 16:58 ` mckelvey at maskull dot com
2021-05-17 17:04 ` mckelvey at maskull dot com
2021-05-17 18:15 ` redi at gcc dot gnu.org
2021-05-17 18:26 ` mckelvey at maskull dot com
2021-05-17 18:27 ` mckelvey at maskull dot com
2021-05-17 18:44 ` mckelvey at maskull dot com
2021-05-17 19:51 ` mckelvey at maskull dot com
2021-05-17 20:24 ` redi at gcc dot gnu.org
2021-05-17 20:34 ` redi at gcc dot gnu.org
2021-05-17 20:37 ` redi at gcc dot gnu.org
2021-05-17 20:53 ` redi at gcc dot gnu.org
2021-05-17 21:05 ` redi at gcc dot gnu.org
2021-05-17 21:36 ` mckelvey at maskull dot com
2021-05-17 22:02 ` redi at gcc dot gnu.org
2021-05-17 22:06 ` redi at gcc dot gnu.org
2021-05-17 22:29 ` redi at gcc dot gnu.org
2021-08-12  0:52 ` pinskia at gcc dot gnu.org

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