public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111899] New: [14 regression] GCC fails to bootstrap with 'ust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope'
@ 2023-10-20 16:40 sjames at gcc dot gnu.org
  2023-10-20 16:42 ` [Bug rust/111899] [14 regression] GCC fails to bootstrap with 'rust-tree.cc:131:10: " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-10-20 16:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111899
           Summary: [14 regression] GCC fails to bootstrap with
                    'ust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was
                    not declared in this scope'
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/build/./prev-gcc/xg++
-B/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/build/./prev-gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu

-I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include

-I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/libstdc++-v3/libsupc++
-L/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
 -fPIE -c -DDEF_GENTOO_SCP -DDEF_GENTOO_ZNOW -DEXTRA_OPTIONS
-DGENTOO_FORTIFY_SOURCE_LEVEL=3 -DDEF_GENTOO_GLIBCXX_ASSERTIONS
-DEXTRA_OPTIONS_CF    -DIN_GCC_FRONTEND -m64 -pipe -march=native
-fdiagnostics-color=always -ggdb3 -O2 -fno-checking -flto=jobserver
-frandom-seed=1 -fcf-protection -fprofile-generate -flto=jobserver
-frandom-seed=1 -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wno-unused-parameter -fno-common  -DHAVE_CONFIG_H
-fPIE -I. -Irust
-I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc
-I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust
-I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/../include

-I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/../libcpp/include
-I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/../libcody

-I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/../libdecnumber
-I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/../libdecnumber/bid
-I../libdecnumber
-I/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/../libbacktrace
  -o rust/rust-tree.o -MT rust/rust-tree.o -MMD -MP -MF
rust/.deps/rust-tree.TPo -m64 -pipe -march=native -fdiagnostics-color=always
-ggdb3 -O2 -fno-checking -flto=jobserver -frandom-seed=1 -fcf-protection
-fprofile-gener
ate -flto=jobserver -frandom-seed=1 -I
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust -I
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/lex -I
/var/tmp/port
age/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/parse -I
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/ast -I
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.
9999/gcc/rust/analysis -I
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/backend
-I
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/expand
-I /var/tmp/portag
e/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/hir/tree -I
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/hir -I
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0
.9999/gcc/rust/resolve -I
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/util
-I
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/typecheck
-I /var/tmp/portag
e/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/checks/lints -I
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/checks/errors
-I /var/tmp/portage/sys-devel/gcc-14.0.0.9999/w
ork/gcc-14.0.0.9999/gcc/rust/checks/errors/privacy -I
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/util
-I /var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/
metadata
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/backend/rust-tree.cc
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/backend/rust-tree.cc:
In function ‘void Rust::mark_exp_read(tree)’:
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/backend/rust-tree.cc:75:10:
error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope
   75 |     case NON_DEPENDENT_EXPR:
      |          ^~~~~~~~~~~~~~~~~~
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/backend/rust-tree.cc:
In function ‘tree_node* Rust::mark_use(tree, bool, bool, location_t, bool)’:
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/backend/rust-tree.cc:131:10:
error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope
  131 |     case NON_DEPENDENT_EXPR:
      |          ^~~~~~~~~~~~~~~~~~
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/backend/rust-tree.cc:
In function ‘cp_lvalue_kind Rust::lvalue_kind(const_tree)’:
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/backend/rust-tree.cc:4523:10:
error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope
 4523 |     case NON_DEPENDENT_EXPR:
      |          ^~~~~~~~~~~~~~~~~~
make[3]: ***
[/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/gcc/rust/Make-lang.in:379:
rust/rust-tree.o] Error 1

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

* [Bug rust/111899] [14 regression] GCC fails to bootstrap with 'rust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope'
  2023-10-20 16:40 [Bug c++/111899] New: [14 regression] GCC fails to bootstrap with 'ust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope' sjames at gcc dot gnu.org
@ 2023-10-20 16:42 ` pinskia at gcc dot gnu.org
  2023-10-20 16:43 ` mpolacek at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-20 16:42 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0

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

* [Bug rust/111899] [14 regression] GCC fails to bootstrap with 'rust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope'
  2023-10-20 16:40 [Bug c++/111899] New: [14 regression] GCC fails to bootstrap with 'ust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope' sjames at gcc dot gnu.org
  2023-10-20 16:42 ` [Bug rust/111899] [14 regression] GCC fails to bootstrap with 'rust-tree.cc:131:10: " pinskia at gcc dot gnu.org
@ 2023-10-20 16:43 ` mpolacek at gcc dot gnu.org
  2023-10-20 16:44 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-10-20 16:43 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-10-20
                 CC|                            |mpolacek at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed, Andrew noticed it too:
https://gcc.gnu.org/pipermail/gcc-patches/2023-October/633773.html

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

* [Bug rust/111899] [14 regression] GCC fails to bootstrap with 'rust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope'
  2023-10-20 16:40 [Bug c++/111899] New: [14 regression] GCC fails to bootstrap with 'ust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope' sjames at gcc dot gnu.org
  2023-10-20 16:42 ` [Bug rust/111899] [14 regression] GCC fails to bootstrap with 'rust-tree.cc:131:10: " pinskia at gcc dot gnu.org
  2023-10-20 16:43 ` mpolacek at gcc dot gnu.org
@ 2023-10-20 16:44 ` pinskia at gcc dot gnu.org
  2023-10-20 17:02 ` ppalka at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-20 16:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I noticed it via the build bot:
https://gcc.gnu.org/pipermail/gcc-testresults/2023-October/798851.html

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

* [Bug rust/111899] [14 regression] GCC fails to bootstrap with 'rust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope'
  2023-10-20 16:40 [Bug c++/111899] New: [14 regression] GCC fails to bootstrap with 'ust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope' sjames at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2023-10-20 16:44 ` pinskia at gcc dot gnu.org
@ 2023-10-20 17:02 ` ppalka at gcc dot gnu.org
  2023-10-20 17:11 ` ppalka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ppalka at gcc dot gnu.org @ 2023-10-20 17:02 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |ppalka at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

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

* [Bug rust/111899] [14 regression] GCC fails to bootstrap with 'rust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope'
  2023-10-20 16:40 [Bug c++/111899] New: [14 regression] GCC fails to bootstrap with 'ust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope' sjames at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2023-10-20 17:02 ` ppalka at gcc dot gnu.org
@ 2023-10-20 17:11 ` ppalka at gcc dot gnu.org
  2023-10-20 17:36 ` cvs-commit at gcc dot gnu.org
  2023-10-20 18:14 ` ppalka at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: ppalka at gcc dot gnu.org @ 2023-10-20 17:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
I'm testing simply removing all occurrences of NON_DEPENDENT_EXPR in the parts
of rust FE that were reused from the C++ FE

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

* [Bug rust/111899] [14 regression] GCC fails to bootstrap with 'rust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope'
  2023-10-20 16:40 [Bug c++/111899] New: [14 regression] GCC fails to bootstrap with 'ust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope' sjames at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2023-10-20 17:11 ` ppalka at gcc dot gnu.org
@ 2023-10-20 17:36 ` cvs-commit at gcc dot gnu.org
  2023-10-20 18:14 ` ppalka at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-10-20 17:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:

https://gcc.gnu.org/g:5ac53c025e08b4c464b02cfc595e422813023c81

commit r14-4800-g5ac53c025e08b4c464b02cfc595e422813023c81
Author: Patrick Palka <ppalka@redhat.com>
Date:   Fri Oct 20 13:36:11 2023 -0400

    rust: build failure after NON_DEPENDENT_EXPR removal [PR111899]

    This patch removes stray NON_DEPENDENT_EXPR checks following the removal
    of this tree code from the C++ FE.  (Since this restores the build I
    supppose it means the Rust FE never creates NON_DEPENDENT_EXPR trees in
    the first place, so no further analysis is needed.)

            PR rust/111899

    gcc/rust/ChangeLog:

            * backend/rust-constexpr.cc (potential_constant_expression_1):
            Remove NON_DEPENDENT_EXPR handling.
            * backend/rust-tree.cc (mark_exp_read): Likewise.
            (mark_use): Likewise.
            (lvalue_kind): Likewise.

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

* [Bug rust/111899] [14 regression] GCC fails to bootstrap with 'rust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope'
  2023-10-20 16:40 [Bug c++/111899] New: [14 regression] GCC fails to bootstrap with 'ust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope' sjames at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2023-10-20 17:36 ` cvs-commit at gcc dot gnu.org
@ 2023-10-20 18:14 ` ppalka at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: ppalka at gcc dot gnu.org @ 2023-10-20 18:14 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed

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

end of thread, other threads:[~2023-10-20 18:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20 16:40 [Bug c++/111899] New: [14 regression] GCC fails to bootstrap with 'ust-tree.cc:131:10: error: ‘NON_DEPENDENT_EXPR’ was not declared in this scope' sjames at gcc dot gnu.org
2023-10-20 16:42 ` [Bug rust/111899] [14 regression] GCC fails to bootstrap with 'rust-tree.cc:131:10: " pinskia at gcc dot gnu.org
2023-10-20 16:43 ` mpolacek at gcc dot gnu.org
2023-10-20 16:44 ` pinskia at gcc dot gnu.org
2023-10-20 17:02 ` ppalka at gcc dot gnu.org
2023-10-20 17:11 ` ppalka at gcc dot gnu.org
2023-10-20 17:36 ` cvs-commit at gcc dot gnu.org
2023-10-20 18:14 ` 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).