Skip to content

Fix build failure on GCC - #20231

Merged
IanWood1 merged 1 commit into
iree-org:mainfrom
IanWood1:fix_gcc_build_failure
Mar 13, 2025
Merged

IanWood1 merged 1 commit into
iree-org:mainfrom
IanWood1:fix_gcc_build_failure

Conversation

@IanWood1

Copy link
Copy Markdown
Member

Use function overload instead of explicit specialization to fix GCC error:

/__w/iree/iree/compiler/src/iree/compiler/Utils/OptionUtils.h:58:13: error: explicit specialization in non-namespace scope 'struct mlir::iree_compiler::opt_initializer<Ty>'
   58 |   template <>
      |          

@IanWood1
IanWood1 requested a review from benvanik as a code owner March 13, 2025 02:26
@IanWood1

Copy link
Copy Markdown
Member Author

See #20047 (comment) for more details

cc @Eliasj42 @ScottTodd

@ScottTodd ScottTodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@IanWood1
IanWood1 enabled auto-merge (squash) March 13, 2025 02:35
@IanWood1
IanWood1 merged commit b36b355 into iree-org:main Mar 13, 2025
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
Use function overload instead of explicit specialization to fix GCC
error:

```
/__w/iree/iree/compiler/src/iree/compiler/Utils/OptionUtils.h:58:13: error: explicit specialization in non-namespace scope 'struct mlir::iree_compiler::opt_initializer<Ty>'
   58 |   template <>
      |          
```

Signed-off-by: Ian Wood <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants