public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99999] New: segmentation fault when declaring concept in module
@ 2021-04-09 14:30 jasio.lpn at gmail dot com
  2021-04-09 14:38 ` [Bug c++/99999] " jasio.lpn at gmail dot com
  2024-03-06 20:49 ` ppalka at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: jasio.lpn at gmail dot com @ 2021-04-09 14:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99999
           Summary: segmentation fault when declaring concept in module
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jasio.lpn at gmail dot com
  Target Milestone: ---

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

* [Bug c++/99999] segmentation fault when declaring concept in module
  2021-04-09 14:30 [Bug c++/99999] New: segmentation fault when declaring concept in module jasio.lpn at gmail dot com
@ 2021-04-09 14:38 ` jasio.lpn at gmail dot com
  2024-03-06 20:49 ` ppalka at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jasio.lpn at gmail dot com @ 2021-04-09 14:38 UTC (permalink / raw)
  To: gcc-bugs

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

Marcin Nowak <jasio.lpn at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jasio.lpn at gmail dot com

--- Comment #1 from Marcin Nowak <jasio.lpn at gmail dot com> ---
Hi
I wanted to check some new stuff from C++20 so I've compiled GCC 11 form git
and wrote some test app. GCC version:

gcc version 11.0.1 20210407 (experimental) (GCC) 

This is the main.cpp file that I've created:

#include <iostream>
#include <string>

import test;

int main()
{
    std::string str = "Hello";

    std::cout << str << std::endl;
    return 0;
}

And this is the test.cpp:

module;

#include <type_traits>
#include <string>

export module test;

template <typename T>
concept IsStdString = std::is_same_v<T, std::string>;

Command line:
c++ -std=c++20 -fmodules-ts test.cpp main.cpp

Compiler doesn't throw any error but when I'm trying to exec app it gives me an
error:

[1]    71397 segmentation fault (core dumped)  ./a.out

If I remove concept part from test.cpp or move it into main.cpp app is working
fine.
I think it's a bug but it's new stuff in language so maybe I don't understand
something

Best regards

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

* [Bug c++/99999] segmentation fault when declaring concept in module
  2021-04-09 14:30 [Bug c++/99999] New: segmentation fault when declaring concept in module jasio.lpn at gmail dot com
  2021-04-09 14:38 ` [Bug c++/99999] " jasio.lpn at gmail dot com
@ 2024-03-06 20:49 ` ppalka at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ppalka at gcc dot gnu.org @ 2024-03-06 20:49 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=112588
         Resolution|---                         |FIXED
                 CC|                            |ppalka at gcc dot gnu.org
   Target Milestone|---                         |14.0
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed for GCC 14 by r14-8196 for PR112588.

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

end of thread, other threads:[~2024-03-06 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 14:30 [Bug c++/99999] New: segmentation fault when declaring concept in module jasio.lpn at gmail dot com
2021-04-09 14:38 ` [Bug c++/99999] " jasio.lpn at gmail dot com
2024-03-06 20:49 ` ppalka 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).